summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-20 13:03:27 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-20 13:03:27 +0200
commit45c99c226bd221bdf21a8579834524204b034706 (patch)
tree913af57fe45245632aef5e71cde26b585168ba3d
parentf414c664f281ad14ed2b0e976ea73238d895457d (diff)
downloadnextcloud-server-45c99c226bd221bdf21a8579834524204b034706.tar.gz
nextcloud-server-45c99c226bd221bdf21a8579834524204b034706.zip
Fix the HTML encoding when uploading a folder in FF when using french l10n
-rw-r--r--apps/files/js/file-upload.js4
-rw-r--r--core/js/js.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index d5470d0be55..e07093dd17b 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -474,9 +474,9 @@ OC.Upload = {
} else {
// HTTP connection problem
var message = t('files', 'Error uploading file "{fileName}": {message}', {
- fileName: data.files[0].name,
+ fileName: escapeHTML(data.files[0].name),
message: data.errorThrown
- });
+ }, undefined, {escape: false});
OC.Notification.show(message, {timeout: 0, type: 'error'});
if (data.result) {
var result = JSON.parse(data.result);
diff --git a/core/js/js.js b/core/js/js.js
index 07ed396bec9..d2bbbae6362 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1127,7 +1127,7 @@ OC.Notification={
*
* @param {string} text Message to display
* @param {Object} [options] options
- * @param {string] [options.type] notification type
+ * @param {string} [options.type] notification type
* @param {int} [options.timeout=0] timeout value, defaults to 0 (permanent)
* @return {jQuery} jQuery element for notification row
*/
@@ -1143,7 +1143,7 @@ OC.Notification={
* @param {array} [options] options array
* @param {int} [options.timeout=7] timeout in seconds, if this is 0 it will show the message permanently
* @param {boolean} [options.isHTML=false] an indicator for HTML notifications (true) or text (false)
- * @param {string] [options.type] notification type
+ * @param {string} [options.type] notification type
*/
showTemporary: function(text, options) {
var self = this;