Unverified Commit e54ff5ec authored by boojack's avatar boojack Committed by GitHub

fix: unescape filename (#158)

parent f0a23f46
......@@ -2,6 +2,7 @@ package server
import (
"fmt"
"html"
"net/http"
"strconv"
......@@ -22,7 +23,7 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("ID is not a number: %s", c.Param("resourceId"))).SetInternal(err)
}
filename := c.Param("filename")
filename := html.UnescapeString(c.Param("filename"))
resourceFind := &api.ResourceFind{
ID: &resourceID,
Filename: &filename,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment