Skip to content

Commit

Permalink
Try to fix dbIO.
Browse files Browse the repository at this point in the history
  • Loading branch information
titlestad committed Dec 15, 2021
1 parent b6cc864 commit d1e292c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions php/classes/dbio.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,12 @@ function EncapsulateField( $fieldname, $value )

case 'datetime':
default:
$value = stripslashes( $value );
// Old mode look illogical and has issues with
// inserting stringified JSON
/*$value = stripslashes( $value );
$value = str_replace( '\"', '"', $value );
$value = str_replace( '"', '\"', $value );
return '"' . $value . '"';
$value = str_replace( '"', '\"', $value );*/
return '"' . addslashes( $value ) . '"';
}
}
}
Expand Down

0 comments on commit d1e292c

Please sign in to comment.