Skip to content
Snippets Groups Projects
Commit 05853632 authored by echicken's avatar echicken :chicken:
Browse files

Strip some crap out of plaintext extended file descriptions.

parent 6e6ae388
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ if (typeof http_request.query.dir !== 'undefined' &&
if (file.extdesc.search(/(\x1B\[|[\xA8-\xFE])/) > -1) {
description = '<pre class="ansi">' + html_encode(file.extdesc, true, false, true, true) + '</pre>';
} else {
description = '<pre class="list">' + file.extdesc + '</pre>';
description = '<pre class="list">' + file.extdesc.replace(/[^\r,\n,\x20-\x7E]/g, "") + '</pre>';
}
}
writeln(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment