fix search path search engine

This commit is contained in:
Antoni Sawicki committed 2025-08-03 23:54:53 -07:00
1 parent 48ecf6fbe9
commit 9ccd770e85
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ func (rq *wrpReq) parseForm() {
}
rq.url = rq.r.FormValue("url")
if len(rq.url) > 1 && !strings.HasPrefix(rq.url, "http") {
rq.url = *searchEng + "?q=" + url.QueryEscape(rq.url)
rq.url = *searchEng + url.QueryEscape(rq.url)
}
// TODO: implement atoiOrZero
rq.width, _ = strconv.ParseInt(rq.r.FormValue("w"), 10, 64)