From 566dc477a322ea8323d29291d8f0903dd8877fa9 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 17 Jul 2009 11:50:03 -0400 Subject: [PATCH] abort and use a regular image tag if we don't have the right image path (seeing this in chora) --- framework/Core/lib/Horde.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 4ca5ad02d..f6ee3507b 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -1388,6 +1388,9 @@ HTML; /* Only encode image files if they are below the dataurl limit. */ $filename = realpath($GLOBALS['registry']->get('fileroot', 'horde')) . preg_replace('/^' . preg_quote($GLOBALS['registry']->get('webroot', 'horde'), '/') . '/', '', $file); + if (!file_exists($filename)) { + return $file; + } /* Delete approx. 50 chars from the limit to account for the various * data/base64 header text. Multiply by 0.75 to determine the -- 2.11.0