Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/8.1' into 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Apr 19, 2024
2 parents 73d0350 + 19ebda4 commit 7502200
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 9 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.

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

Large diffs are not rendered by default.

0 comments on commit 7502200

Please sign in to comment.