Browse Source

Merge pull request #63 from ModernArtisan/fix-search-query-with-quotes

Fix search query with quotes by replacing trim function to substr.
master
Tom 8 years ago
committed by GitHub
parent
commit
f2e74e4e4e
  1. 2
      src/SearchDrivers/BaseSearchDriver.php

2
src/SearchDrivers/BaseSearchDriver.php

@ -72,7 +72,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface
*/
public function query($searchString)
{
$this->searchString = trim(\DB::connection()->getPdo()->quote($searchString), "'");
$this->searchString = substr(substr(\DB::connection()->getPdo()->quote($searchString), 1), 0, -1);
return $this;
}

Loading…
Cancel
Save