mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 08:58:30 +01:00
Correctly escape filenames in displayFilesAsHTML
This commit is contained in:
parent
92018b761d
commit
c3469bd545
1 changed files with 2 additions and 2 deletions
|
@ -945,12 +945,12 @@ const Utils = {
|
|||
* @param {Object[]} files
|
||||
* @returns {html}
|
||||
*/
|
||||
displayFilesAsHTML: function(files){
|
||||
displayFilesAsHTML: function(files) {
|
||||
const formatDirectory = function(file) {
|
||||
const html = "<div class='panel panel-default'>" +
|
||||
"<div class='panel-heading' role='tab'>" +
|
||||
"<h4 class='panel-title'>" +
|
||||
file.fileName +
|
||||
Utils.escapeHtml(file.fileName) +
|
||||
// The following line is for formatting when HTML is stripped
|
||||
"<span style='display: none'>\n0 bytes\n</span>" +
|
||||
"</h4>" +
|
||||
|
|
Loading…
Reference in a new issue