[geeklog-cvs] Geeklog-1.x/system/classes upload.class.php, 1.48, 1.49

Blaine Lang blaine at qs1489.pair.com
Sun Sep 30 00:43:39 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv90601

Modified Files:
	upload.class.php 
Log Message:
Fix to handle spaces in the array defintion for allowable MIME Type extensions

Index: upload.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/upload.class.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** upload.class.php	11 Jan 2007 04:47:27 -0000	1.48
--- upload.class.php	30 Sep 2007 04:43:36 -0000	1.49
***************
*** 1052,1055 ****
--- 1052,1056 ----
                  $fileName = $this->_currentFile['name'];
                  foreach ($extensions as $ext) {
+                     $ext = trim($ext);
                      if (strcasecmp (substr ($fileName, -strlen ($ext)), $ext) == 0) {
                          return true;




More information about the geeklog-cvs mailing list