mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-24 09:00:29 +00:00
Fix upload of cover and book formats containing html characters
This commit is contained in:
parent
bcdc976414
commit
7ad419dc8c
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user