Skip to content

Commit

Permalink
Search Class now can handle punctuation like a single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Mar 3, 2020
1 parent 00881f9 commit 741bb58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/classes/search.class.php
Expand Up @@ -133,7 +133,7 @@ public function __construct(array $config)

// Set search criteria
if (isset($_GET['query'])) {
$query = Geeklog\Input::fGet('query');
$query = Geeklog\Input::get('query'); // use get instead of fGet so results are not completely filtered (we want punctuation)
$query = urldecode($query);
$query = GLText::remove4byteUtf8Chars($query);
$this->_query = GLText::stripTags($query);
Expand Down Expand Up @@ -792,7 +792,7 @@ public function searchFormatCallback($preSort, $row)
// Returning a '' for the url column in the search sql means it will be created from id using plugin api (plugin_searchformat_foo)
$row['url'] = PLG_searchFormat($row[LF_SOURCE_NAME], $row['id'], 'url', $row['id']);
}

if (isset($this->_append_query[$row[LF_SOURCE_NAME]]) &&
$this->_append_query[$row[LF_SOURCE_NAME]]
) {
Expand Down

0 comments on commit 741bb58

Please sign in to comment.