aboutsummaryrefslogtreecommitdiff
path: root/scripts/pagelist.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-10-07 13:59:46 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-10-07 13:59:46 +0000
commit8c001bef85f60b0f17885ac95ffe596afc924029 (patch)
tree5e1b7d660984e6ef259d8a14289a621c5a29e1d1 /scripts/pagelist.php
parenta2d0243ecad9eef0f275aa31b0de57623603be19 (diff)
downloadpmwiki.svn-8c001bef85f60b0f17885ac95ffe596afc924029.tar.bz2
Searchbox also escape custom field names.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4188 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagelist.php')
-rw-r--r--scripts/pagelist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pagelist.php b/scripts/pagelist.php
index ce7775a3..b18efcb0 100644
--- a/scripts/pagelist.php
+++ b/scripts/pagelist.php
@@ -170,7 +170,7 @@ function SearchBox($pagename, $opt) {
$v = PHSC($v, ENT_QUOTES);
$opt[$k] = $v;
if(preg_match('/^(q|label|value|size|placeholder|aria-\\w+)$/', $k)) continue;
- $k = str_replace("'", "&#039;", $k);
+ $k = PHSC($k, ENT_QUOTES);
$out .= "<input type='hidden' name='$k' value='$v' />";
}
SDV($SearchBoxInputType, 'text');