From 32b9d1e2d5372f427e55d01682a6d50c1ebc573b Mon Sep 17 00:00:00 2001 From: Howl Date: Tue, 17 May 2016 15:35:18 +0200 Subject: [PATCH] Escape backslashes in UserLookupGET --- app/v1/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/v1/user.go b/app/v1/user.go index 807816c..5ef904d 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -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")