Difference between revisions of "Bugs"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
* search.php and package.php will not check a file's date, so they will create download links to mirror sites even if the file is not mirrored yet. | * search.php and package.php will not check a file's date, so they will create download links to mirror sites even if the file is not mirrored yet. | ||
* if somebody uploads foo.lha and foo.lha.readme, admin.pl will accept this upload and add it to the database - but obviously, it shouldn't.<br><br>This is caused by doc/info/adt/suffixes (which lists all accepted suffixes) having an empty line. When searching for the archive that belongs to a readme, admin.pl will strip ".readme" from foo.lha.readme, store the result in $root and then do<br><br> for $s (@suffixes) {<br> $archive = "$root$s" if -f "$root$s";<br> }<br><br>As $root + empty_line exists, admin.pl will accept the upload. | * if somebody uploads foo.lha and foo.lha.readme, admin.pl will accept this upload and add it to the database - but obviously, it shouldn't.<br><br>This is caused by doc/info/adt/suffixes (which lists all accepted suffixes) having an empty line. When searching for the archive that belongs to a readme, admin.pl will strip ".readme" from foo.lha.readme, store the result in $root and then do<br><br> for $s (@suffixes) {<br> $archive = "$root$s" if -f "$root$s";<br> }<br><br>As $root + empty_line exists, admin.pl will accept the upload. |
Revision as of 02:31, 25 March 2006
- search.php and package.php will not check a file's date, so they will create download links to mirror sites even if the file is not mirrored yet.
- if somebody uploads foo.lha and foo.lha.readme, admin.pl will accept this upload and add it to the database - but obviously, it shouldn't.
This is caused by doc/info/adt/suffixes (which lists all accepted suffixes) having an empty line. When searching for the archive that belongs to a readme, admin.pl will strip ".readme" from foo.lha.readme, store the result in $root and then do
for $s (@suffixes) {
$archive = "$root$s" if -f "$root$s";
}
As $root + empty_line exists, admin.pl will accept the upload.