From 741bb58cbd49ae7dac12d690754d682f4941a3b4 Mon Sep 17 00:00:00 2001 From: eSilverStrike Date: Tue, 3 Mar 2020 14:00:22 -0500 Subject: [PATCH] Search Class now can handle punctuation like a single quote --- system/classes/search.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/classes/search.class.php b/system/classes/search.class.php index 336918281..d05a519a0 100644 --- a/system/classes/search.class.php +++ b/system/classes/search.class.php @@ -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); @@ -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]] ) {