Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Oct 4, 2017
1 parent b883cf5 commit 9d936f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_search/views/search/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function display($tpl = null)
}

// Make sure there are no slashes in the needle
// $needle = str_replace('/','\/',$needle);
$needle = str_replace('/','\/',$needle);

$result->title = preg_replace("/\b($needle)\b/ui", $hl1 . "$1" . $hl2, htmlspecialchars($result->title, ENT_COMPAT, 'UTF-8'));
$result->text = JHtml::_('content.prepare', $result->text, '', 'com_search.search');
Expand Down

0 comments on commit 9d936f3

Please sign in to comment.