hrev47579 adds 1 changeset to branch 'master' old head: ccea78b56d9a899941d47b3a99db2577efa184c9 new head: ad3d3335df11c4460cd0cf159710003914572956 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=ad3d333+%5Eccea78b ---------------------------------------------------------------------------- ad3d333: Fix gopher search forms Now searching for haiku on Veronica 2 leads to: gopher://gopher.floodgap.com/7/v2/vs?haiku [ François Revol <revol@xxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev47579 Commit: ad3d3335df11c4460cd0cf159710003914572956 URL: http://cgit.haiku-os.org/haiku/commit/?id=ad3d333 Author: François Revol <revol@xxxxxxx> Date: Sat Jul 26 21:50:22 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 4 insertions(+), 2 deletions(-) src/kits/network/libnetapi/GopherRequest.cpp | 6 ++++-- ---------------------------------------------------------------------------- diff --git a/src/kits/network/libnetapi/GopherRequest.cpp b/src/kits/network/libnetapi/GopherRequest.cpp index 70d44af..5b82d02 100644 --- a/src/kits/network/libnetapi/GopherRequest.cpp +++ b/src/kits/network/libnetapi/GopherRequest.cpp @@ -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";