diff options
| author | lsces <lester@lsces.co.uk> | 2014-05-31 23:07:51 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-05-31 23:07:51 +0100 |
| commit | bf212e13b26b8ea72eaf076569c58a21a5d6cb2d (patch) | |
| tree | 7e3494385ad726607260db991e35e2c6e1b290c0 | |
| parent | 9a94032a7f0f948031abf7f20746b91a846f262a (diff) | |
| download | wiki-bf212e13b26b8ea72eaf076569c58a21a5d6cb2d.tar.gz wiki-bf212e13b26b8ea72eaf076569c58a21a5d6cb2d.tar.bz2 wiki-bf212e13b26b8ea72eaf076569c58a21a5d6cb2d.zip | |
nginx rewrite strips the '+' symbol which then prevents finding the
matching page, so hack to replaace it.
| -rw-r--r-- | lookup_page_inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lookup_page_inc.php b/lookup_page_inc.php index 971ae83..b2b548e 100644 --- a/lookup_page_inc.php +++ b/lookup_page_inc.php @@ -37,6 +37,8 @@ if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gCo //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("&", "&", $lookupHash['page'] ); + // Fix nignx mapping of '+' sign when doing rewrite + $loadPage = str_replace("+", " ", $loadPage ); if( $loadPage && $existsInfo = BitPage::pageExists( $loadPage ) ) { if (count($existsInfo)) { |
