[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.49,1.49.2.1
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri May 23 07:43:49 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv3615/public_html
Modified Files:
Tag: geeklog_1_3_7sr1_1
usersettings.php
Log Message:
Check for file extension (in addition to the MIME type) when uploading images.
Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.49
retrieving revision 1.49.2.1
diff -C2 -d -r1.49 -r1.49.2.1
*** usersettings.php 5 Jan 2003 21:35:07 -0000 1.49
--- usersettings.php 23 May 2003 11:43:47 -0000 1.49.2.1
***************
*** 481,485 ****
$upload->setAutomaticResize(true);
}
! $upload->setAllowedMimeTypes(array('image/gif','image/jpeg','image/pjpeg','image/x-png','image/png'));
if (!$upload->setPath($_CONF['path_html'] . 'images/userphotos')) {
print 'File Upload Errors:<BR>' . $upload->printErrors();
--- 481,485 ----
$upload->setAutomaticResize(true);
}
! $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/userphotos')) {
print 'File Upload Errors:<BR>' . $upload->printErrors();
More information about the geeklog-cvs
mailing list