mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Bugfix: Properly escape page names in the datalist
This commit is contained in:
parent
cbde150075
commit
fe165bec3e
2 changed files with 4 additions and 2 deletions
|
@ -1311,7 +1311,8 @@ class page_renderer
|
|||
$result = "<datalist id='allpages'>\n";
|
||||
foreach($arrayPageIndex as $pagename => $pagedetails)
|
||||
{
|
||||
$result .= "\t\t\t<option value='$pagename' />\n";
|
||||
$escapedPageName = str_replace('"', '"', $pagename);
|
||||
$result .= "\t\t\t<option value=\"$escapedPageName\" />\n";
|
||||
}
|
||||
$result .= "\t\t</datalist>";
|
||||
|
||||
|
|
3
core.php
3
core.php
|
@ -1004,7 +1004,8 @@ class page_renderer
|
|||
$result = "<datalist id='allpages'>\n";
|
||||
foreach($arrayPageIndex as $pagename => $pagedetails)
|
||||
{
|
||||
$result .= "\t\t\t<option value='$pagename' />\n";
|
||||
$escapedPageName = str_replace('"', '"', $pagename);
|
||||
$result .= "\t\t\t<option value=\"$escapedPageName\" />\n";
|
||||
}
|
||||
$result .= "\t\t</datalist>";
|
||||
|
||||
|
|
Loading…
Reference in a new issue