[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.59,1.60

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
In directory internal.geeklog.net:/tmp/cvs-serv3581/public_html

Modified Files:
	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.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** usersettings.php	20 May 2003 08:55:54 -0000	1.59
--- usersettings.php	23 May 2003 11:43:27 -0000	1.60
***************
*** 553,557 ****
                  $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();
--- 553,557 ----
                  $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