From b1f4e5487d0fdd1977000bb91fc0b82fe5eacb3d Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Mon, 28 Oct 2024 11:18:25 +0100 Subject: [PATCH] Bug: wrong function name --- application/libraries/SearchBarLib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/SearchBarLib.php b/application/libraries/SearchBarLib.php index 782e30843..6d817c20f 100644 --- a/application/libraries/SearchBarLib.php +++ b/application/libraries/SearchBarLib.php @@ -778,7 +778,7 @@ class SearchBarLib if (strstr($tpl, '{word}')) $tpl = str_replace('{word}', $this->_ci->db->escape($word), $tpl); if (strstr($tpl, '{like:word}')) - $tpl = str_replace('{like:word}', "'%" . $this->_ci->db->escapeLike($word) . "%'", $tpl); + $tpl = str_replace('{like:word}', "'%" . $this->_ci->db->escape_like_str($word) . "%'", $tpl); return $tpl; }