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:36:12 -0800 |
commit | ee9c92139763c6c0d3be7f3156603a5de5382fc3 (patch) | |
tree | 514ff36a54df6a56feda877fe1de3794edc0a1f9 | |
parent | 4c5e2000f606d696a056fcfed231df5be8a42ada (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) . "')"; |