From a8a5a096340322b5ece3b5acc46f32c49f628484 Mon Sep 17 00:00:00 2001 From: Tomasz Kalkosinski Date: Thu, 18 Dec 2008 22:06:29 +0000 Subject: Fix 2048241. --- lookup_page_inc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lookup_page_inc.php') diff --git a/lookup_page_inc.php b/lookup_page_inc.php index cc329e9..618f6c0 100644 --- a/lookup_page_inc.php +++ b/lookup_page_inc.php @@ -1,6 +1,6 @@ mPageId ) && empty( $gContent->mContentId ) ) { //handle legacy forms that use plain 'page' form variable name + + //if page had some special enities they were changed to HTML for for security reasons. + //now we deal only with string so convert it back - so we can support this case: + //You&Me --(detoxify in kernel)--> You&Me --(now)--> You&Me + //we could do htmlspecialchars_decode but it allows <> marks here, so we just transform & to & - it's not so scary. + $loadPage = str_replace("&", "&", $loadPage ); if( $loadPage && $existsInfo = $gContent->pageExists( $loadPage ) ) { if (count($existsInfo)) { -- cgit v1.3