[pLog-svn] r6959 - in plog/branches/lifetype-1.2/class: data/validator template

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Jan 13 19:43:43 EST 2010


Author: jondaley
Date: 2010-01-13 19:43:43 -0500 (Wed, 13 Jan 2010)
New Revision: 6959

Modified:
   plog/branches/lifetype-1.2/class/data/validator/uploadvalidator.class.php
   plog/branches/lifetype-1.2/class/template/templatesandbox.class.php
Log:
same sort of extension bug, but this time for IIS

Modified: plog/branches/lifetype-1.2/class/data/validator/uploadvalidator.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/uploadvalidator.class.php	2010-01-13 16:16:47 UTC (rev 6958)
+++ plog/branches/lifetype-1.2/class/data/validator/uploadvalidator.class.php	2010-01-14 00:43:43 UTC (rev 6959)
@@ -87,6 +87,9 @@
             	if( Glob::fnmatch( $file.".*", $fileName )) {
                 	return UPLOAD_VALIDATOR_ERROR_FORBIDDEN_EXTENSION;
                 }
+            	if( Glob::fnmatch( $file.";*", $fileName )) {
+                	return UPLOAD_VALIDATOR_ERROR_FORBIDDEN_EXTENSION;
+                }
             }
 
         	return true;			

Modified: plog/branches/lifetype-1.2/class/template/templatesandbox.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/template/templatesandbox.class.php	2010-01-13 16:16:47 UTC (rev 6958)
+++ plog/branches/lifetype-1.2/class/template/templatesandbox.class.php	2010-01-14 00:43:43 UTC (rev 6959)
@@ -54,6 +54,9 @@
                 $files = Glob::myGlob( $folder, $file.".*" );
                 if( count($files) > 0 )
                 	return false;
+                $files = Glob::myGlob( $folder, $file.";*" );
+                if( count($files) > 0 )
+                	return false;
             }
 
             return true;



More information about the pLog-svn mailing list