From 855e2c58b858768a663fefb14488c799ff0b4e9a Mon Sep 17 00:00:00 2001 From: e107steved Date: Fri, 18 Jan 2008 21:08:06 +0000 Subject: [PATCH] Bugtracker #4299 - didn't delete original of resized file --- e107_plugins/forum/forum_post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index 483ceea48..f638cf69e 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $ -| $Revision: 1.15 $ -| $Date: 2007-12-19 20:12:46 $ +| $Revision: 1.16 $ +| $Date: 2008-01-18 21:07:47 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -618,7 +618,7 @@ function process_upload() } else { - @unlink($fpath.$orig_file); + @unlink(e_FILE.'public/'.$orig_file); //show resized $parms = image_getsize(e_FILE.'public/'.$new_file); $_POST['post'] .= "[br][img{$parms}]".$fpath.$new_file."[/img][br]";