projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206b90d
)
abort and use a regular image tag if we don't have the right image path (seeing this...
author
Chuck Hagenbuch
<chuck@horde.org>
Fri, 17 Jul 2009 15:50:03 +0000
(11:50 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Fri, 17 Jul 2009 15:50:03 +0000
(11:50 -0400)
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
4ca5ad0
..
f6ee350
100644
(file)
--- 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