1
0
Fork 0
forked from svrjs/svrjs

Remove <nocode> (non-standard) tags for bad (broken) directory listing entries

This commit is contained in:
Dorian Niemiec 2024-03-17 00:59:53 +01:00
parent f1c74cb036
commit 3493aa4d2d

4
svr.js
View file

@ -3706,9 +3706,9 @@ if (!cluster.isPrimary) {
directoryListingRows.push(
"<tr><td style=\"width: 24px;\"><img src=\"/.dirimages/bad.png\" alt=\"[BAD]\" width=\"24px\" height=\"24px\" /></td><td style=\"word-wrap: break-word; word-break: break-word; overflow-wrap: break-word;\"><a href=\"" +
(href + "/" + encodeURI(ename)).replace(/\/+/g, "/") +
"\"><nocode>" +
"\">" +
ename.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;") +
"</nocode></a></td><td>-</td><td>" +
"</a></td><td>-</td><td>" +
(estats ? estats.mtime.toDateString() : "-") +
"</td></tr>\r\n"
);