Commit: b9a1fcb1ae07f16a5efb5665a724ade9a4710d5a Author: Hannes Magnusson <[email protected]> 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"; -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
