mirror of
https://github.com/mrclay/minify.git
synced 2025-08-17 19:37:22 +02:00
Don't assume all allowDir paths start with "//"
This commit is contained in:
@@ -56,7 +56,9 @@ class Minify_Source_Factory {
|
|||||||
// resolve // in allowDirs
|
// resolve // in allowDirs
|
||||||
$docRoot = $env->getDocRoot();
|
$docRoot = $env->getDocRoot();
|
||||||
foreach ($this->options['allowDirs'] as $i => $dir) {
|
foreach ($this->options['allowDirs'] as $i => $dir) {
|
||||||
$this->options['allowDirs'][$i] = $docRoot . substr($dir, 1);
|
if (0 === strpos($dir, '//')) {
|
||||||
|
$this->options['allowDirs'][$i] = $docRoot . substr($dir, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->options['fileChecker'] && !is_callable($this->options['fileChecker'])) {
|
if ($this->options['fileChecker'] && !is_callable($this->options['fileChecker'])) {
|
||||||
|
Reference in New Issue
Block a user