Explorar el Código

Add more escaping char in the good order to avoid breaking XML quote for Databases

master
LecygneNoir hace 5 años
padre
commit
4c834e4385
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      rollback_database.sh

+ 6
- 2
rollback_database.sh Ver fichero

@ -51,11 +51,15 @@ for key in $(grep Key ${ORIGINAL_XML} | awk -F'"' '{print $2}'); do
# Escape special char causing problem in with sed and xml
msgstr=${msgstr//'\n'/'\\n'}
msgstr=${msgstr//'&'/'&'}
msgstr=${msgstr//' & '/' & '}
msgstr=${msgstr//'\"'/"""}
msgstr=${msgstr//'&'/'\&'}
msgid=${msgid//'\n'/'\\n'}
msgid=${msgid//'&'/'&'}
msgid=${msgid//' & '/' & '}
msgid=${msgid//'\"'/"""}
msgid=${msgid//'&'/'\&'}
if [[ "${msgstr}" == "" ]]; then

Cargando…
Cancelar
Guardar