diff options
author | deva <deva> | 2010-06-10 07:03:06 +0000 |
---|---|---|
committer | deva <deva> | 2010-06-10 07:03:06 +0000 |
commit | 198b0d886817f2c5bc97cfd11857d4b314dffae3 (patch) | |
tree | 4fc2d51de46ab69b9e67149abf0ab6a332032f27 /server/src/xml_encode_decode.cc | |
parent | 730eb796bbce6f124be9194f1565b7dda1daddf1 (diff) |
Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros.
Diffstat (limited to 'server/src/xml_encode_decode.cc')
-rw-r--r-- | server/src/xml_encode_decode.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server/src/xml_encode_decode.cc b/server/src/xml_encode_decode.cc index 5ed61f2..427e451 100644 --- a/server/src/xml_encode_decode.cc +++ b/server/src/xml_encode_decode.cc @@ -26,7 +26,7 @@ */ #include "xml_encode_decode.h" #include <string.h> - +/* char xml_map[][2][16] = { { "&", "&" }, // & must be first @@ -36,6 +36,17 @@ char xml_map[][2][16] = { "<", "<" }, { "", "" } // End marker }; +*/ + +char xml_map[][2][16] = + { + { "&", "&" }, // & must be first + { "\'", "'" }, + { "\"", """ }, + { ">", ">" }, + { "<", "<" }, + { "", "" } // End marker + }; #define MAX_MAPS 5 |