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

Commit 367e86af authored by Rob Swindell's avatar Rob Swindell 💬

Fix the "undefined" display when a file has no description.

parent 6104817b
......@@ -34,7 +34,7 @@
<strong><? write(; ?></strong> (<? write(file.size); ?>)
<p><em>Uploaded <? write(system.timestr(file.uldate)); ?></em></p>
<?xjs if (typeof file.extdesc === 'undefined') { ?>
<p><? write(file.desc); ?></p>
<p><? if (file.desc !== undefined) write(file.desc); ?></p>
<?xjs } else if (\x1B\[|[\xA8-\xFE])|\x01/) > -1) { ?>
<pre class="ansi"><? write(html_encode(file.extdesc, true, false, true, true)); ?></pre>
<?xjs } else { ?>
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