Skip to content

Commit

Permalink
Update import_messages.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse authored Feb 22, 2024
1 parent d17cd67 commit fa68216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cordova/android/import_messages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const XML_STRING_ID_PROPERTY = '@name';
const XML_TEXT_CONTENT = '#';

function escapeXmlCharacters(str) {
return str.replace(/"/g, '\\"').replace(/'/g, "\\'").replace(/</g, '\\<').replace(/>/g, '\\>;').replace(/&/g, '\\&').replace(/\\/g, '\\');
return str.replace(/"/g, '\\"').replace(/'/g, "\\'").replace(/</g, '\\<').replace(/>/g, '\\>;').replace(/&/g, '\\&').replace(/\//g, "\\\\");

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.
}

function getNativeLocale(locale) {
Expand Down

0 comments on commit fa68216

Please sign in to comment.