1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-13 17:44:00 +02:00

list allowDirs in exception to simplify debugging

This commit is contained in:
Evgeny Mazovetskiy
2016-05-09 17:29:08 +02:00
committed by Steve Clay
parent b38ed79042
commit 6a2995f932

View File

@@ -126,7 +126,9 @@ abstract class Minify_Controller_Base {
return true;
}
}
throw new Exception("File '$file' is outside \$allowDirs. If the path is"
$allowDirs = implode(';', array_values($allowDirs));
throw new Exception("File '$file' is outside \$allowDirs ($allowDirs). If the path is"
. " resolved via an alias/symlink, look into the \$min_symlinks option."
. " E.g. \$min_symlinks['/" . dirname($uri) . "'] = '" . dirname($file) . "';");
}