cvs: pearweb /public_html release-upload.php

From: Date: Fri, 28 Dec 2001 23:30:08 +0000
Subject: cvs: pearweb /public_html release-upload.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1734@lists.php.net to get a copy of this message
cox Fri Dec 28 18:30:08 2001 EDT Modified files: /pearweb/public_html release-upload.php Log: one more security check for uploads Index: pearweb/public_html/release-upload.php diff -u pearweb/public_html/release-upload.php:1.5 pearweb/public_html/release-upload.php:1.6 --- pearweb/public_html/release-upload.php:1.5 Fri Dec 28 15:08:06 2001 +++ pearweb/public_html/release-upload.php Fri Dec 28 18:30:08 2001 @@ -21,6 +21,7 @@ } if ($file->isValid()) { $file->setName('uniq', 'pear-'); + $file->setValidExtensions('tgz', 'accept'); $tmpfile = $file->moveTo(PEAR_UPLOAD_TMPDIR); if (PEAR::isError($tmpfile)) { display_error($tmpfile->getMessage()); break;

« previous php.pear.cvs (#1734) next »