Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit fd99cca8 authored by Rob Swindell's avatar Rob Swindell 💬

Use html_encode() for extended descriptions with Ctrl-A codes too.

Synchronet v3.19 now converts ANSI-encoded DIZs to Ctrl-A format upon import.
parent c67c16bb
......@@ -35,7 +35,7 @@
<p><em>Uploaded <? write(system.timestr(file.uldate)); ?></em></p>
<?xjs if (typeof file.extdesc === 'undefined') { ?>
<p><? write(file.desc); ?></p>
<?xjs } else if (\x1B\[|[\xA8-\xFE])/) > -1) { ?>
<?xjs } else if (\x1B\[|[\xA8-\xFE])|\x01/) > -1) { ?>
<pre class="ansi"><? write(html_encode(file.extdesc, true, false, true, true)); ?></pre>
<?xjs } else { ?>
<pre class="list"><? write(file.extdesc.replace(/[^\r,\n\x20-\x7E]/g, '')); ?></pre>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment