Links in wiki search to add a missing page should encode the titles to make them URL safe. Fixes bug #11883.
This commit is contained in:
parent
c3d0c74952
commit
0406e82546
3 changed files with 70 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ use WebGUI::Utility;
|
|||
use HTML::Parser;
|
||||
use URI::Escape;
|
||||
use WebGUI::Form;
|
||||
use WebGUI::Search;
|
||||
use Clone qw/clone/;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -985,7 +986,7 @@ sub www_search {
|
|||
mostPopularUrl=>$self->getUrl("func=mostPopular"),
|
||||
mostPopularLabel=>$i18n->get("mostPopularLabel"),
|
||||
wikiHomeUrl=>$self->getUrl,
|
||||
addPageUrl=>$self->getUrl("func=add;class=WebGUI::Asset::WikiPage;title=".$queryString),
|
||||
addPageUrl=>$self->getUrl("func=add;class=WebGUI::Asset::WikiPage;title=".$self->session->url->escape($queryString)),
|
||||
};
|
||||
$self->appendSearchBoxVars($var, $queryString);
|
||||
if (length $queryString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue