com web/php: Allow urlencode \ too: include/manual-lookup.inc
| From: | Paul Dragoonis | Date: | Tue, 21 Apr 2015 03:50:29 +0000 |
| Subject: | com web/php: Allow urlencode \ too: include/manual-lookup.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21676@lists.php.net to get a copy of this message | ||
Commit: b9a1fcb1ae07f16a5efb5665a724ade9a4710d5a
Author: Hannes Magnusson <bjori@php.net> Mon, 20 Apr 2015 20:50:29 -0700
Parents: b6068a4014ebcb0287154c2c50aa2c470c73307b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b9a1fcb1ae07f16a5efb5665a724ade9a4710d5a
Log:
Allow urlencode \ too
Changed paths:
M include/manual-lookup.inc
Diff:
diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc
index b2e6668..77bc9e4 100644
--- a/include/manual-lookup.inc
+++ b/include/manual-lookup.inc
@@ -39,7 +39,8 @@ function tryprefix($lang, $keyword, $prefix)
if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; }
}
- // Replace namespace sperators, and try that (if different)
+ // urldecode() (%5C == \) Replace namespace sperators, and try that (if different)
+ $keyword = urldecode($keyword);
$noul = str_replace("\\", "-", $keyword);
if ($noul != $keyword) {
$try = "/manual/${lang}/${prefix}${noul}.php";