1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

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

View File

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