Update of /cvsroot/xoops/xoops2/modules/system/admin/images
In directory sc8-pr-cvs1:/tmp/cvs-serv24215/modules/system/admin/images
Modified Files:
main.php
Log Message:
fix addslashes problem
Index: main.php
===================================================================
RCS file: /cvsroot/xoops/xoops2/modules/system/admin/images/main.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** main.php 2 Jan 2003 20:10:04 -0000 1.1
--- main.php 5 Jan 2003 18:46:28 -0000 1.2
***************
*** 219,223 ****
$fbinary = @fread($fp, filesize($uploader->getSavedDestination()));
@fclose($fp);
! $image->setVar('image_body', addslashes($fbinary));
@unlink($uploader->getSavedDestination());
}
--- 219,223 ----
$fbinary = @fread($fp, filesize($uploader->getSavedDestination()));
@fclose($fp);
! $image->setVar('image_body', $fbinary, true);
@unlink($uploader->getSavedDestination());
}
|