diff --git a/php/classes/dbio.php b/php/classes/dbio.php index 4fd7db117f..b1af1b98dd 100644 --- a/php/classes/dbio.php +++ b/php/classes/dbio.php @@ -325,12 +325,10 @@ function EncapsulateField( $fieldname, $value ) case 'datetime': default: - // Old mode look illogical and has issues with - // inserting stringified JSON - /*$value = stripslashes( $value ); + $value = stripslashes( $value ); $value = str_replace( '\"', '"', $value ); - $value = str_replace( '"', '\"', $value );*/ - return '"' . addslashes( $value ) . '"'; + $value = str_replace( '"', '\"', $value ); + return '"' . $value . '"'; } } }