From ad551f29692b9efd66f5618f3c1eb5acc3ffa332 Mon Sep 17 00:00:00 2001 From: kuoruan Date: Wed, 4 Jan 2017 12:07:07 +0800 Subject: [PATCH] Avoid angular translate security warning --- js/init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/init.js b/js/init.js index 31b34b7..872c886 100755 --- a/js/init.js +++ b/js/init.js @@ -41,6 +41,7 @@ webui.config(['$translateProvider', function ($translateProvider) { .translations('ru_RU', mergeTranslation(translations.ru_RU, translations.en_US)) .translations('it_IT', mergeTranslation(translations.it_IT, translations.en_US)) .translations('tr_TR', mergeTranslation(translations.tr_TR, translations.en_US)) + .useSanitizeValueStrategy('escapeParameters') .determinePreferredLanguage(); }]);