mirror of
https://github.com/mrclay/minify.git
synced 2025-08-07 22:56:33 +02:00
CSS/UriRewriter.php : fixed expansion of docRoot in symlink links
min/index.php : removed expansion (unneeded)
This commit is contained in:
@@ -29,12 +29,7 @@ if ($min_documentRoot) {
|
||||
Minify::setDocRoot(); // IIS may need help
|
||||
}
|
||||
|
||||
// normalize paths in symlinks
|
||||
foreach ($min_symlinks as $link => $target) {
|
||||
$link = str_replace('//', realpath($_SERVER['DOCUMENT_ROOT']), $link);
|
||||
$link = strtr($link, '/', DIRECTORY_SEPARATOR);
|
||||
$min_serveOptions['minifierOptions']['text/css']['symlinks'][$link] = realpath($target);
|
||||
}
|
||||
$min_serveOptions['minifierOptions']['text/css']['symlinks'] = $min_symlinks;
|
||||
|
||||
if ($min_allowDebugFlag && isset($_GET['debug'])) {
|
||||
$min_serveOptions['debug'] = true;
|
||||
|
@@ -52,7 +52,7 @@ class Minify_CSS_UriRewriter {
|
||||
|
||||
// normalize symlinks
|
||||
foreach ($symlinks as $link => $target) {
|
||||
$link = str_replace('//', realpath(self::$_docRoot), $link);
|
||||
$link = str_replace('//', realpath(self::$_docRoot) . '/', $link);
|
||||
$link = strtr($link, '/', DIRECTORY_SEPARATOR);
|
||||
self::$_symlinks[$link] = realpath($target);
|
||||
}
|
||||
|
Reference in New Issue
Block a user