sql escape json content

This commit is contained in:
Omar Irbouh 2014-07-20 16:41:36 +00:00
parent 46c8524c97
commit c9c044939f
1 changed files with 1 additions and 1 deletions

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)