Fix upload of cover and book formats containing html characters

This commit is contained in:
Ozzie Isaacs 2021-11-20 13:40:23 +01:00
parent bcdc976414
commit 7ad419dc8c
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ $("#btn-upload-format").on("change", function () {
if (filename.substring(3, 11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$("#upload-format").html(filename);
$("#upload-format").text(filename);
});
$("#btn-upload-cover").on("change", function () {
@ -256,7 +256,7 @@ $("#btn-upload-cover").on("change", function () {
if (filename.substring(3, 11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$("#upload-cover").html(filename);
$("#upload-cover").text(filename);
});
$("#xchange").click(function () {