Skip to content

Commit

Permalink
Second part of the fix for bug #63490.
Browse files Browse the repository at this point in the history
  • Loading branch information
db- committed Dec 5, 2012
1 parent a06ff6c commit fdec771
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/manual-lookup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fdec771

Please sign in to comment.