Commit:    c7f6f7bc3ff97089515d7e429312e91008b2f680
Author:    Daniel P. Brown <[email protected]>         Wed, 5 Dec 2012 18:26:25 
-0500
Parents:   22e566cecab1b336e14afd748097814908934dd8
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=c7f6f7bc3ff97089515d7e429312e91008b2f680

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);
     }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to