From: Sven Schöling Date: Thu, 2 Apr 2015 11:39:25 +0000 (+0200) Subject: Javascript escaping: Nochmal mit JavaScript Plugin X-Git-Tag: release-3.2.1~16 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d5fee534871e921008ede95b57877865a4933df7;p=kivitendo-erp.git Javascript escaping: Nochmal mit JavaScript Plugin damit Mosu glücklich ist. :) --- diff --git a/templates/webpages/layout/javascript_setup.js b/templates/webpages/layout/javascript_setup.js index 2746ed737..178bcb54e 100644 --- a/templates/webpages/layout/javascript_setup.js +++ b/templates/webpages/layout/javascript_setup.js @@ -1,9 +1,9 @@ [%- USE T8 %] -[%- USE JSON %] +[%- USE JavaScript %] $(function() { [% IF datefmt %] - setupPoints([% JSON.json(MYCONFIG.numberformat) %], '[% 'wrongformat' | $T8 %]'); - setupDateFormat([% JSON.json(MYCONFIG.dateformat) %], '[% 'Falsches Datumsformat!' | $T8 %]'); + setupPoints('[% JavaScript.escape(MYCONFIG.numberformat) %]', '[% 'wrongformat' | $T8 %]'); + setupDateFormat('[% JavaScript.escape(MYCONFIG.dateformat) %]', '[% 'Falsches Datumsformat!' | $T8 %]'); $.datepicker.setDefaults( $.extend({}, $.datepicker.regional["[% MYCONFIG.countrycode %]"], {