forked from svrjs/svrjs
Remove <nocode> (non-standard) tags for bad (broken) directory listing entries
This commit is contained in:
parent
f1c74cb036
commit
3493aa4d2d
1 changed files with 2 additions and 2 deletions
4
svr.js
4
svr.js
|
@ -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, "&").replace(/</g, "<").replace(/>/g, ">") +
|
||||
"</nocode></a></td><td>-</td><td>" +
|
||||
"</a></td><td>-</td><td>" +
|
||||
(estats ? estats.mtime.toDateString() : "-") +
|
||||
"</td></tr>\r\n"
|
||||
);
|
||||
|
|
Reference in a new issue