PMCORE-2961 Review the WARNING in the file gulliver/system/class.inputfilter.php

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-04-23 16:05:28 -04:00
parent 835b6f87b1
commit 5740bf1546

View File

@@ -340,10 +340,6 @@ class InputFilter
*/ */
public function quoteSmart($source, &$connection) public function quoteSmart($source, &$connection)
{ {
// strip slashes
if (get_magic_quotes_gpc()) {
$source = stripslashes($source);
}
// quote both numeric and text // quote both numeric and text
$source = $this->escapeString($source, $connection); $source = $this->escapeString($source, $connection);
return $source; return $source;
@@ -536,11 +532,6 @@ class InputFilter
$values[$k1] = mysqli_real_escape_string($con, $val1); $values[$k1] = mysqli_real_escape_string($con, $val1);
} }
if (get_magic_quotes_gpc()) {
foreach ($values as $k => $val) {
$values[$k] = stripslashes($val);
}
}
$newQuery = vsprintf($query, $values); $newQuery = vsprintf($query, $values);
} else { } else {
$newQuery = $this->quoteSmart($this->decode($query), $con); $newQuery = $this->quoteSmart($this->decode($query), $con);