sql escape json content

This commit is contained in:
Omar Irbouh
2014-07-20 16:41:36 +00:00
parent 0a7bcb4e68
commit a8b11e0e33

View File

@@ -207,7 +207,7 @@
//save to the database in json format
if ($_SESSION['cdr']['format']['text'] == "json" && $_SESSION['cdr']['storage']['text'] == "db") {
$database->fields['json'] = json_encode($xml);
$database->fields['json'] = check_str(json_encode($xml));
}
//insert the check_str($extension_uuid)