Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use realpath when calculating the relative paths of embedded re…

…ferences in css files. This fixes ticket #910
  • Loading branch information...
commit ee9c92139763c6c0d3be7f3156603a5de5382fc3 1 parent 4c5e200
@talmdal talmdal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/gallery/libraries/Gallery_View.php
View
2  modules/gallery/libraries/Gallery_View.php
@@ -125,7 +125,7 @@ private function process_css($css_file) {
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) . "')";
Please sign in to comment.
Something went wrong with that request. Please try again.