Skip to content

Commit

Permalink
Closes #4887 - Updated plupload to v2.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Oct 19, 2022
1 parent c41d2f4 commit 322e57e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ used as it is.

fileList.append(
'<li id="' + file.id + '">' +
'<div class="plupload_file_name"><span>' + file.name + '</span></div>' +
'<div class="plupload_file_name"><span>' + plupload.xmlEncode(file.name) + '</span></div>' +
'<div class="plupload_file_action"><a href="#"></a></div>' +
'<div class="plupload_file_status">' + file.percent + '%</div>' +
'<div class="plupload_file_size">' + plupload.formatSize(file.size) + '</div>' +
Expand Down Expand Up @@ -306,7 +306,7 @@ used as it is.

// Rename file and glue extension back on
file.name = targetInput.val() + ext;
targetSpan.html(file.name);
targetSpan.text(file.name);
targetInput.blur();
}
});
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions e107_web/js/plupload/jquery.ui.plupload/jquery.ui.plupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ $.widget("ui.plupload", {
break;
}

message += " <br /><i>" + details + "</i>";
message += " <br /><i>" + plupload.xmlEncode(details) + "</i>";

self._trigger('error', null, { up: up, error: err } );

Expand Down Expand Up @@ -1167,7 +1167,7 @@ $.widget("ui.plupload", {
return ext;

default:
return file[$1] || '';
return plupload.xmlEncode(file[$1] || '');
}
});
});
Expand Down Expand Up @@ -1313,7 +1313,7 @@ $.widget("ui.plupload", {
// Rename file and glue extension back on
if (e.keyCode === 13) {
file.name = nameInput.val() + ext;
nameSpan.html(file.name);
nameSpan.text(file.name);
}
nameInput.blur();
}
Expand Down

0 comments on commit 322e57e

Please sign in to comment.