We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe8ced commit baa97b8Copy full SHA for baa97b8
src/Common/Common.php
@@ -21,7 +21,7 @@ public static function mysql_escape($fieldValue)
21
}
22
23
if(self::is_json($fieldValue)){
24
- return $fieldValue;
+ return self::safeJson($fieldValue);
25
26
27
if (!empty($fieldValue) && is_string($fieldValue)) {
@@ -38,7 +38,7 @@ public static function mysql_escape($fieldValue)
38
protected static function safeJsonString($fieldValue){
39
return str_replace(
40
["'"],
41
- ["\'"],
+ ["\\'"],
42
$fieldValue
43
);
44
0 commit comments