[BUGFIX] @ sign in labels is not handled properly 74/42074/2
authorXavier Perseguers <xavier@typo3.org>
Tue, 28 Jul 2015 21:02:04 +0000 (23:02 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 29 Jul 2015 08:18:07 +0000 (10:18 +0200)
Change-Id: If30d942306667750cc25ae220096fbc255ba28d9
Resolves: #68588
Reviewed-on: http://review.typo3.org/42074
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/files/scripts/bin/update-typo3-core-template

index 5345985..e5c4fb0 100755 (executable)
@@ -160,7 +160,7 @@ for VERSION in ${VERSIONS}; do
                                                # New lines should be escaped in replacement string
                                                # Beware of special characters changing string to UPPER CASE and breaking the generated XLIFF:
                                                # see: http://perldoc.perl.org/perlre.html#Escape-sequences
-                                               REPLACEMENT=$(echo -n "${NEW_VALUE}" | sed 's/\\/\\\\/g' | sed 's/|/\\|/g' | sed 's/\$/\\$/g' | perl -pe 'BEGIN{undef $/;} s|\n|\\n|smg')
+                                               REPLACEMENT=$(echo -n "${NEW_VALUE}" | sed 's/\\/\\\\/g' | sed 's/|/\\|/g' | sed 's/\$/\\$/g' | sed 's/@/\\@/g' | perl -pe 'BEGIN{undef $/;} s|\n|\\n|smg')
 
                                                perl -pe "BEGIN{undef $/;} s|${ELEMENT}.*?</trans-unit>|${REPLACEMENT}|smg" ${TARGET_NAME} > ${TARGET_NAME}.tmp
                                                if [ $? -ne 0 ]; then