Skip to content

Commit

Permalink
Merge pull request #63 from ModernArtisan/fix-search-query-with-quotes
Browse files Browse the repository at this point in the history
Fix search query with quotes by replacing trim function to substr.
  • Loading branch information
TomLingham authored Dec 13, 2016
2 parents fbe64c6 + 6ea1214 commit f2e74e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchDrivers/BaseSearchDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function select()
*/
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;
}
Expand Down

0 comments on commit f2e74e4

Please sign in to comment.