com web/php: Second part of the fix for bug #63490.: include/manual-lookup.inc

From: Date: Wed, 05 Dec 2012 23:26:25 +0000
Subject: com web/php: Second part of the fix for bug #63490.: include/manual-lookup.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-15045@lists.php.net to get a copy of this message
Commit: fdec771e1f20751f1eb97d94b4cd4c1fb937632b Author: Daniel P. Brown <danbrown@php.net> Wed, 5 Dec 2012 18:26:25 -0500 Parents: a06ff6c298a43e47dca04320a3c8aad89219a3f9 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=fdec771e1f20751f1eb97d94b4cd4c1fb937632b Log: Second part of the fix for bug #63490.. Bugs: https://bugs.php.net/63490 Changed paths: M include/manual-lookup.inc Diff: diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc index d12d7e1..c6c612a 100644 --- a/include/manual-lookup.inc +++ b/include/manual-lookup.inc @@ -108,8 +108,10 @@ function find_manual_page($lang, $keyword) // English one in case no page is found $langs = ($lang != 'en') ? array($lang, 'en') : array('en'); - // Reformat keyword, drop anything in parenthesis - $keyword = str_replace('_', '-', $keyword); + // Reformat keyword, drop anything in parenthesis --- except a search for the underscore only. (Bug #63490) + if ($keyword != '_') { + $keyword = str_replace('_', '-', $keyword); + } if (strpos($keyword, '(') !== FALSE) { $keyword = preg_replace("!\\(.*\\)!", "-", $keyword); }

« previous php.webmaster (#15045) next »