From bfdf0db7c069f3a456c48b185f6222c1dcef2bbe Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 8 Dec 2014 09:42:20 +0100 Subject: Autoescape of placeholders in t() and p() - for JS * add disableEscape parameter to disable this functionality * drop usage of escapeHTML() that is now done inside t() * add unit test for escaped and not escaped placeholder * proper JSDoc --- apps/files/js/filesummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files') diff --git a/apps/files/js/filesummary.js b/apps/files/js/filesummary.js index f83eb54678b..d3afc0239d1 100644 --- a/apps/files/js/filesummary.js +++ b/apps/files/js/filesummary.js @@ -180,7 +180,7 @@ fileSize = '' + OC.Util.humanFileSize(summary.totalSize) + ''; } - var info = t('files', '{dirs} and {files}', infoVars); + var info = t('files', '{dirs} and {files}', infoVars, null, {'escape': false}); var $summary = $(''+info+''+fileSize+''); -- cgit v1.2.3