diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 09:28:30 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 09:28:30 -0800 |
commit | 48e5af8d739f69e5891d072fab98240641c2640c (patch) | |
tree | a57d0e720f07747b3a529ef4d5649460d7249633 | |
parent | 005cf8e8286b4dbc99bc47fae2662acfca855fd7 (diff) |
Don't use realpath when calculating the relative paths of embedded references in css files. This fixes ticket #910
-rw-r--r-- | modules/gallery/libraries/Gallery_View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Gallery_View.php b/modules/gallery/libraries/Gallery_View.php index bdfd2fc9..3bf56d0f 100644 --- a/modules/gallery/libraries/Gallery_View.php +++ b/modules/gallery/libraries/Gallery_View.php @@ -125,7 +125,7 @@ class Gallery_View_Core extends View { if (preg_match_all($PATTERN, $css, $matches, PREG_SET_ORDER)) { $search = $replace = array(); foreach ($matches as $match) { - $relative = substr(realpath(dirname($css_file) . "/$match[1]"), $docroot_length); + $relative = dirname($css_file) . "/$match[1]"; if (!empty($relative)) { $search[] = $match[0]; $replace[] = "url('" . url::abs_file($relative) . "')"; |