diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-30 15:52:18 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-30 15:52:18 -0800 |
commit | d50b7531993fcf7dee2542255f11b20257db737d (patch) | |
tree | ea76324fe18732954de0c3ea314ba805591ec0ad /modules/server_add/controllers | |
parent | 2e98825c25c540dfc2555a2f36bc3b9e2f80db54 (diff) | |
parent | 7af844606d79d1f987c6d754f5c5db64d86acc47 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/server_add/controllers')
-rw-r--r-- | modules/server_add/controllers/server_add.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/server_add/controllers/server_add.php b/modules/server_add/controllers/server_add.php index 6ff00812..f6e3a4dd 100644 --- a/modules/server_add/controllers/server_add.php +++ b/modules/server_add/controllers/server_add.php @@ -42,13 +42,15 @@ class Server_Add_Controller extends Admin_Controller { // Make a tree with the parents back up to the authorized path, and all the children under the // current path. + Kohana_Log::add("error", $path); if (server_add::is_valid_path($path)) { $tree->parents[] = $path; while (server_add::is_valid_path(dirname($tree->parents[0]))) { array_unshift($tree->parents, dirname($tree->parents[0])); } - foreach (glob("$path/*") as $file) { + $glob_path = str_replace(array("{", "}", "[", "]"), array("\{", "\}", "\[", "\]"), $path); + foreach (glob("$glob_path/*") as $file) { if (!is_readable($file)) { continue; } |