Escape backslashes in UserLookupGET
This commit is contained in:
1 parent
f7559e8cc5
commit
32b9d1e2d5
1 file changed
+1
@@ -291,6 +291,7 @@ func UserLookupGET(md common.MethodData) common.CodeMessager {
|
||||
name := strings.NewReplacer(
|
||||
"%", "\\%",
|
||||
"_", "\\_",
|
||||
"\\", "\\\\",
|
||||
).Replace(md.C.Query("name"))
|
||||
if name == "" {
|
||||
return common.SimpleResponse(400, "please provide an username to start searching")
|
||||
|
||||
Reference in new issue
Block a user