abort and use a regular image tag if we don't have the right image path (seeing this...
authorChuck Hagenbuch <chuck@horde.org>
Fri, 17 Jul 2009 15:50:03 +0000 (11:50 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 17 Jul 2009 15:50:03 +0000 (11:50 -0400)
framework/Core/lib/Horde.php

index 4ca5ad0..f6ee350 100644 (file)
@@ -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