mirror of
https://github.com/tenox7/wrp.git
synced 2026-04-27 01:19:31 +00:00
fix search path search engine
This commit is contained in:
1 parent
48ecf6fbe9
commit
9ccd770e85
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user