summaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 15:47:44 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 15:47:44 -0800
commit7fb1551254cb6085f2fe227f10f510b39bcfe424 (patch)
tree7cf30c56a855263137dc1cb16eda0ebebdbca130 /web/web.go
parentb9d93b104c3b928eebeb75df9a40cff0fd5abe15 (diff)
downloadchat-7fb1551254cb6085f2fe227f10f510b39bcfe424.tar.gz
chat-7fb1551254cb6085f2fe227f10f510b39bcfe424.tar.bz2
chat-7fb1551254cb6085f2fe227f10f510b39bcfe424.zip
Fixed issue with emails containing a '+'
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go
index a72bff2bf..63544229b 100644
--- a/web/web.go
+++ b/web/web.go
@@ -564,7 +564,7 @@ func verifyEmail(c *api.Context, w http.ResponseWriter, r *http.Request) {
return
} else {
c.LogAudit("Email Verified")
- http.Redirect(w, r, api.GetProtocol(r)+"://"+r.Host+"/"+name+"/login?verified=true&email="+email, http.StatusTemporaryRedirect)
+ http.Redirect(w, r, api.GetProtocol(r)+"://"+r.Host+"/"+name+"/login?verified=true&email="+url.QueryEscape(email), http.StatusTemporaryRedirect)
return
}
}