Skip to content

Commit

Permalink
Fix search query with quotes by replacing trim function to substr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Basenko committed Dec 12, 2016
1 parent fbe64c6 commit 6ea1214
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 6ea1214

Please sign in to comment.