Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit cd9d065

Browse files
committed
db4s: Escape another user supplied string, for safety
1 parent d3e0258 commit cd9d065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db4s/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func licenceAddHandler(w http.ResponseWriter, r *http.Request) {
462462
do := r.FormValue("display_order")
463463
dispOrder, err := strconv.Atoi(do)
464464
if err != nil {
465-
http.Error(w, fmt.Sprintf("Invalid display order: %v", do), http.StatusBadRequest)
465+
http.Error(w, fmt.Sprintf("Invalid display order: %v", html.EscapeString(do)), http.StatusBadRequest)
466466
return
467467
}
468468

0 commit comments

Comments
 (0)