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

Commit 043c8d9

Browse files
committed
db4s: Sanitise an error message I somehow missed the other day
1 parent 8587da7 commit 043c8d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

db4s/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ func getHandler(w http.ResponseWriter, r *http.Request, userAcc string) {
345345
return
346346
}
347347
if !exists {
348-
http.Error(w, fmt.Sprintf("Database '%s%s%s' doesn't exist", dbOwner, dbFolder, dbName), http.StatusNotFound)
348+
http.Error(w, fmt.Sprintf("Database '%s%s%s' doesn't exist", com.SanitiseLogString(dbOwner),
349+
com.SanitiseLogString(dbFolder), com.SanitiseLogString(dbName)), http.StatusNotFound)
349350
return
350351
}
351352

0 commit comments

Comments
 (0)