diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2018-08-20 17:01:08 +0200 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2018-08-20 18:44:04 +0200 |
| commit | 5b60b4225f31956fe3d117254d4bb0f9a42eda45 (patch) | |
| tree | dd04383a9d8da66b7cf76740ce6e7b199b735607 /htroot/env | |
| parent | b726b2b532207e5dc14e10dc792cfd1ca2ff9237 (diff) | |
Fixed encoding of '+' character on search pages links
As revealed by issue #216
Diffstat (limited to 'htroot/env')
| -rw-r--r-- | htroot/env/templates/simpleSearchHeader.template | 2 | ||||
| -rw-r--r-- | htroot/env/templates/simpleheader.template | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/htroot/env/templates/simpleSearchHeader.template b/htroot/env/templates/simpleSearchHeader.template index 761f6c7d2..dea156f36 100644 --- a/htroot/env/templates/simpleSearchHeader.template +++ b/htroot/env/templates/simpleSearchHeader.template @@ -37,7 +37,7 @@ <span class="visible-sm glyphicon glyphicon-search"><b class="caret"></b></span> </a> <ul class="dropdown-menu" role="menu"> - <li id="header_websearch"><a href="index.html#(authSearch)#::?auth#(/authSearch)#" onclick="this.href='index.html?#(authSearch)#::auth&#(/authSearch)#former='+document.searchform.search.value">Web Search</a></li> + <li id="header_websearch"><a href="index.html#(authSearch)#::?auth#(/authSearch)#" onclick="this.href='index.html?#(authSearch)#::auth&#(/authSearch)#former='+encodeURIComponent(document.searchform.search.value)">Web Search</a></li> <li id="header_filesearch"><a href="yacyinteractive.html" onclick="this.href='yacyinteractive.html?handover='+document.searchform.search.value">File Search</a></li> <li id="header_comparesearch"><a href="compare_yacy.html?display=0">Compare Search</a></li> <li id="header_hostbrowser"><a href="HostBrowser.html?hosts=">Index Browser</a></li> diff --git a/htroot/env/templates/simpleheader.template b/htroot/env/templates/simpleheader.template index 02a9a600d..edb4084dd 100644 --- a/htroot/env/templates/simpleheader.template +++ b/htroot/env/templates/simpleheader.template @@ -17,7 +17,7 @@ <li id="header_search" class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">Search Interfaces<b class="caret"></b></a> <ul class="dropdown-menu" role="menu"> - <li id="header_websearch"><a href="index.html#(authorized)#::?auth#(/authorized)#" onclick="this.href='index.html?#(authorized)#::auth&#(/authorized)#former='+document.searchform.search.value">Web Search</a></li> + <li id="header_websearch"><a href="index.html#(authorized)#::?auth#(/authorized)#" onclick="this.href='index.html?#(authorized)#::auth&#(/authorized)#former='+encodeURIComponent(document.searchform.search.value)">Web Search</a></li> <li id="header_filesearch"><a href="yacyinteractive.html" onclick="this.href='yacyinteractive.html?handover='+document.searchform.search.value">File Search</a></li> <li id="header_comparesearch"><a href="compare_yacy.html?display=0">Compare Search</a></li> <li id="header_hostbrowser"><a href="HostBrowser.html?hosts=">Index Browser</a></li> |
