AUR web interface

Tasklist

FS#3127 - Add "no binary" validation

Attached to Project: AUR web interface
Opened by Aaron Griffin (phrakture) - Monday, 29 August 2005, 16:14 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I don't have svn access and haven't tested this or anything (need to setup the DB when I have time, however, the following should be fairly simple:

in pkgsubmit.php, line ~180:

if ($f != "." && $f != "..") {
$pkg_contents[$f] = filesize($f);
+ if (preg_match("/.*pkg.tar.gz/",$f)) {
+ $error = __("Binary packages are not allowed for upload");
+ }
}
This task depends upon

Closed by  Jaroslaw Swierczynski (swiergot)
Friday, 02 September 2005, 15:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r239 with a little modification of regexp to also disallow filelists.

Loading...