From 6a2995f93256a54928f7413bf26971e92ed43d2b Mon Sep 17 00:00:00 2001 From: Evgeny Mazovetskiy Date: Mon, 9 May 2016 17:29:08 +0200 Subject: [PATCH] list allowDirs in exception to simplify debugging --- min/lib/Minify/Controller/Base.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/min/lib/Minify/Controller/Base.php b/min/lib/Minify/Controller/Base.php index 4e43013..3ed3028 100644 --- a/min/lib/Minify/Controller/Base.php +++ b/min/lib/Minify/Controller/Base.php @@ -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) . "';"); }