[geeklog-cvs] geeklog-1.3/system/classes downloader.class.php,1.3,1.4
tony at geeklog.net
tony at geeklog.net
Wed Dec 31 00:41:53 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory geeklog_prod:/tmp/cvs-serv2526
Modified Files:
downloader.class.php
Log Message:
Updated a couple of bugs in this file. This file will finally be put to use to allow images to be served up from directories outside the webtree in a secure manner.
Index: downloader.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/downloader.class.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** downloader.class.php 24 Jun 2003 09:50:15 -0000 1.3
--- downloader.class.php 31 Dec 2003 05:41:51 -0000 1.4
***************
*** 400,404 ****
// available list
for ($i = 1; $i <= count($validExtensions); $i++) {
! if (!in_array(current($validExtensions),$this->_availableExtensions)) {
$this->_addError('extension, ' .current($validExtensions) . ' is not in the list of available file types for download');
return;
--- 400,404 ----
// available list
for ($i = 1; $i <= count($validExtensions); $i++) {
! if (!in_array(current($validExtensions),$this->_availableMimeTypes)) {
$this->_addError('extension, ' .current($validExtensions) . ' is not in the list of available file types for download');
return;
***************
*** 429,433 ****
function checkExtension($extension)
{
! if (!in_array($extension,$this->getAllowedExtensions())) {
$this->_addError('File type, .' . $extension . ', not in list of allowed file types available for download');
return false;
--- 429,433 ----
function checkExtension($extension)
{
! if (!in_array($extension,array_keys($this->getAllowedExtensions()))) {
$this->_addError('File type, .' . $extension . ', not in list of allowed file types available for download');
return false;
More information about the geeklog-cvs
mailing list