[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.90,1.91
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri May 23 07:43:29 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory internal.geeklog.net:/tmp/cvs-serv3581/public_html/admin
Modified Files:
story.php
Log Message:
Check for file extension (in addition to the MIME type) when uploading images.
Index: story.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.90
retrieving revision 1.91
diff -C2 -d -r1.90 -r1.91
*** story.php 19 May 2003 08:52:19 -0000 1.90
--- story.php 23 May 2003 11:43:27 -0000 1.91
***************
*** 817,821 ****
}
}
! $upload->setAllowedMimeTypes(array('image/gif','image/jpeg','image/pjpeg','image/x-png','image/png'));
if (!$upload->setPath($_CONF['path_html'] . 'images/articles')) {
print 'File Upload Errors:<br>' . $upload->printErrors();
--- 817,821 ----
}
}
! $upload->setAllowedMimeTypes(array('image/gif'=>'.gif','image/jpeg'=>'.jpg,.jpeg','image/pjpeg'=>'.jpg,.jpeg','image/x-png'=>'.png','image/png'=>'.png'));
if (!$upload->setPath($_CONF['path_html'] . 'images/articles')) {
print 'File Upload Errors:<br>' . $upload->printErrors();
More information about the geeklog-cvs
mailing list