Fix gopher search forms

Now searching for haiku on Veronica 2 leads to:
gopher://gopher.floodgap.com/7/v2/vs?haiku
This commit is contained in:
François Revol
2014-07-26 23:55:02 +02:00
parent ccea78b56d
commit ad3d3335df
+4 -2
View File
@@ -510,10 +510,12 @@ BGopherRequest::_ParseInput(bool last)
* For now we use an unnamed input field and accept sending ?=foo
* as it seems at least Veronica-2 ignores the = but it's unclean.
*/
item << "<form method=\"get\" action=\"" << link << "\">"
item << "<form method=\"get\" action=\"" << link << "\" "
"onsubmit=\"window.location = this.action + '?' + "
"this.elements['q'].value; return false;\">"
"<span class=\"query\">"
"<label>" << title << " "
"<input name=\"\" type=\"text\" align=\"right\" />"
"<input id=\"q\" name=\"\" type=\"text\" align=\"right\" />"
"</label>"
"</span></form>"
"<br/>\n";