fix urls for spaces in filenames

This commit is contained in:
mappu 2014-01-09 18:20:42 +13:00
parent 32cbbebe97
commit 6d8c943976

View File

@ -230,7 +230,7 @@ class CProject {
<ul>
<?php foreach($this->downloads as $filename) { ?>
<li>
<a href="srv/<?=hesc(urlencode($filename))?>"><?=hesc($filename)?></a>
<a href="srv/<?=hesc(rawurlencode($filename))?>"><?=hesc($filename)?></a>
<small>
<?=hesc(fbytes(filesize(BASEDIR.'wwwroot/srv/'.$filename)))?>
</small>