forked from tangled.org/core
this repo has no description

urlencode email verification url's query params

when trying to verify a [plus addressed](https://www.google.com/search?q=plus+addressing) email id, opening the received verification link gives "Invalid verification code. Please request a new verification email."
this is due to unescaped `+` in the email id. ideally all the query params should be url encoded.

Tangled a62cada2 a440b20e

Changed files
+2 -1
appview
state
+2 -1
appview/state/settings.go
···
"fmt"
"log"
"net/http"
"strings"
"time"
···
appUrl = "https://tangled.sh"
}
-
return fmt.Sprintf("%s/settings/emails/verify?did=%s&email=%s&code=%s", appUrl, did, email, code)
}
func (s *State) SettingsEmailsVerify(w http.ResponseWriter, r *http.Request) {
···
"fmt"
"log"
"net/http"
+
"net/url"
"strings"
"time"
···
appUrl = "https://tangled.sh"
}
+
return fmt.Sprintf("%s/settings/emails/verify?did=%s&email=%s&code=%s", appUrl, url.QueryEscape(did), url.QueryEscape(email), url.QueryEscape(code))
}
func (s *State) SettingsEmailsVerify(w http.ResponseWriter, r *http.Request) {