1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Quick fix for image-path issue

This commit is contained in:
CaMer0n
2010-01-04 10:18:02 +00:00
parent 553fa3e38d
commit ab856f4f7d

View File

@@ -9,8 +9,8 @@
* e107 Main * e107 Main
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/mail.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/mail.php,v $
* $Revision: 1.22 $ * $Revision: 1.23 $
* $Date: 2010-01-04 10:14:48 $ * $Date: 2010-01-04 10:18:02 $
* $Author: e107coders $ * $Author: e107coders $
*/ */
@@ -686,10 +686,10 @@ class e107Email extends PHPMailer
$filename = basename($url); $filename = basename($url);
$directory = dirname($url); $directory = dirname($url);
if ($directory == '.') $directory=''; if ($directory == '.') $directory='';
if (strpos($directory, e_HTTP) === 0) if ((strpos($directory, e_HTTP) === 0) && (e_HTTP != '/')) // FIXME - if e_HTTP == '/' - breaks full path;
{ {
// $directory = str_replace(e_HTTP, '', $directory); // FIXME - if e_HTTP == '/' - breaks full path; $directory = str_replace(e_HTTP, '', $directory);
// $basedir = e_ROOT; $basedir = e_ROOT;
} }
if(vartrue($_E107['debug'])) if(vartrue($_E107['debug']))