From 344ec3d9aed5457532e399f7d3b1599efb922a29 Mon Sep 17 00:00:00 2001 From: e107steved Date: Tue, 24 Apr 2007 20:29:11 +0000 Subject: [PATCH] Sort attachment file name if its in a subdirectory --- e107_handlers/phpmailer/mailout_process.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e107_handlers/phpmailer/mailout_process.php b/e107_handlers/phpmailer/mailout_process.php index bee6b340d..38e707f2a 100644 --- a/e107_handlers/phpmailer/mailout_process.php +++ b/e107_handlers/phpmailer/mailout_process.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/phpmailer/mailout_process.php,v $ -| $Revision: 1.3 $ -| $Date: 2007-02-17 18:18:50 $ -| $Author: e107coders $ +| $Revision: 1.4 $ +| $Date: 2007-04-24 20:29:11 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); @@ -116,8 +116,8 @@ if($_POST['cancel_emails']){ $attach = chop($_POST['email_attachment']); if (($temp = strrchr($attach,'/')) !== FALSE) - { - $attach = substr($attach,$temp + 1); + { // Just specify filename as attachment - no path + $attach = substr($attach,1); } if(is_readable(e_DOWNLOAD.$attach))