[pLog-svn] r5573 - plog/branches/lifetype-1.2/class/gallery/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Jun 23 12:12:56 EDT 2007


Author: oscar
Date: 2007-06-23 12:12:56 -0400 (Sat, 23 Jun 2007)
New Revision: 5573

Modified:
   plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
Log:
I'm not sure if it's because the magic_quotes_gpc or whatever but this was needed in Linux (but not in OS X)


Modified: plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php	2007-06-23 16:01:20 UTC (rev 5572)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php	2007-06-23 16:12:56 UTC (rev 5573)
@@ -4,7 +4,7 @@
     lt_include( PLOG_CLASS_PATH."class/file/fileupload.class.php" );
     lt_include( PLOG_CLASS_PATH."class/file/file.class.php" );
     lt_include( PLOG_CLASS_PATH."class/file/fileuploads.class.php" );
-    lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
+lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
     lt_include( PLOG_CLASS_PATH."class/gallery/galleryconstants.php" );
 
 	define( "RESOURCE_STORAGE_STORE_COPY", 1 );
@@ -255,7 +255,7 @@
 				$destFile = $filePath.$ownerId."-".$resourceId.".".$fileExt;
 			}
 			else {
-				$destFile = $filePath.$upload->getFileName();
+				$destFile = $filePath.stripslashes($upload->getFileName());
 			}
 
 			// first of all, check if the file is readable and if not, quit	



More information about the pLog-svn mailing list