Escaping characters in database -
I am trying to create my own simple database and I am solving a final problem. I am securing database data to use my own format (actually simplified JSON does not require everything). This problem is being saved, as I am using (for example) {
} shows the incoming name of the table. The problem occurs when someone uses {
in a table} to solve this?
If I change it to any other value, then the user can change the string and after the program decode the stored database (array, ...) back to the database, these strings decode And the user will be won't put what he's inside. I think about this for a long time and no solution could be found. Any ideas?
You do not need to sort the escape character to replace it.
Let's assume that {
is verbatim to refer to a verbatim {
, you \
. Now, \
is ambiguous, so please allow it to only escape \\
. No more ambiguity!
Comments
Post a Comment