From 6ea121476059b55e5a963a16e9b0b37669c4df46 Mon Sep 17 00:00:00 2001 From: Vyacheslav Basenko Date: Mon, 12 Dec 2016 19:00:19 +0200 Subject: [PATCH] Fix search query with quotes by replacing trim function to substr. --- src/SearchDrivers/BaseSearchDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 926b440..68d99d6 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/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; }