Replace escapeString with quoteString
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
bfe1f4facf
commit
9a8fec903f
@ -1272,8 +1272,7 @@ class InsertEdit
|
||||
|| in_array($editField->function, $this->getGisFromWKBFunctions())
|
||||
) {
|
||||
preg_match('/^(\'?)(.*?)\1(?:,(\d+))?$/', $editField->value, $matches);
|
||||
$escapedParams = "'" . $this->dbi->escapeString($matches[2])
|
||||
. (isset($matches[3]) ? "'," . $matches[3] : "'");
|
||||
$escapedParams = $this->dbi->quoteString($matches[2]) . (isset($matches[3]) ? ',' . $matches[3] : '');
|
||||
|
||||
return $editField->function . '(' . $escapedParams . ')';
|
||||
}
|
||||
|
||||
@ -7876,9 +7876,6 @@
|
||||
</PossiblyUnusedMethod>
|
||||
</file>
|
||||
<file src="libraries/classes/InsertEdit.php">
|
||||
<DeprecatedMethod>
|
||||
<code>escapeString</code>
|
||||
</DeprecatedMethod>
|
||||
<InvalidArgument>
|
||||
<code>$urlParams</code>
|
||||
</InvalidArgument>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user