diff options
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsubmit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 72ada9d..787f4c5 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -30,7 +30,7 @@ if ($_COOKIE["AURSID"]): if (!$error) { $fh = fopen($_FILES['pfile']['tmp_name'], 'rb'); fseek($fh, 0, SEEK_SET); - $magic = end(unpack('v', fread($fh, 2))); + list(, $magic) = unpack('v', fread($fh, 2)); if ($magic != 0x8b1f) { $error = __("Error - unsupported file format (please submit gzip'ed tarballs generated by makepkg(8) only)."); @@ -40,7 +40,7 @@ if ($_COOKIE["AURSID"]): # Check uncompressed file size (ZIP bomb protection) if (!$error && $MAX_FILESIZE_UNCOMPRESSED) { fseek($fh, -4, SEEK_END); - $filesize_uncompressed = end(unpack('V', fread($fh, 4))); + list(, $filesize_uncompressed) = unpack('V', fread($fh, 4)); if ($filesize_uncompressed > $MAX_FILESIZE_UNCOMPRESSED) { $error = __("Error - uncompressed file size too large."); |