From 4f4f38e4eab8993eb85fc259e649cb810500edaa Mon Sep 17 00:00:00 2001 From: NorHei Date: Thu, 3 Mar 2016 11:27:59 +0100 Subject: [PATCH] more fixes for the fix --- wbce/framework/class.wb.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wbce/framework/class.wb.php b/wbce/framework/class.wb.php index 1e59716df..9fa7f77cb 100644 --- a/wbce/framework/class.wb.php +++ b/wbce/framework/class.wb.php @@ -177,6 +177,14 @@ public function strip_slashes($input) return stripslashes($input); } + function strip_magic($input) { + if (get_magic_quotes_gpc() and is_string($input)) { + return stripslashes($input); + } + return $input; + } + + // Escape backslashes for use with mySQL LIKE strings public function escape_backslashes($input) {