diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 07:04:11 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 07:04:11 -0700 |
commit | a5af531fbee1db0c3a0ae0d23388245b2d2ec2de (patch) | |
tree | e83b918387e584d1562624446e3faae23ae8e03f /modules/server_add | |
parent | 30b5c389e6baae397d6c5c9fe9c7ed91a5296568 (diff) |
Don't show links as part of the auto complete list
Diffstat (limited to 'modules/server_add')
-rw-r--r-- | modules/server_add/controllers/admin_server_add.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/server_add/controllers/admin_server_add.php b/modules/server_add/controllers/admin_server_add.php index 7cd82d60..38190fee 100644 --- a/modules/server_add/controllers/admin_server_add.php +++ b/modules/server_add/controllers/admin_server_add.php @@ -36,7 +36,7 @@ class Admin_Server_Add_Controller extends Admin_Controller { if ($form->validate()) { if (is_link($form->add_path->path->value)) { $form->add_path->path->add_error("is_symlink", 1); - } else if (! is_readable($form->add_path->path->value)) { + } else if (!is_readable($form->add_path->path->value)) { $form->add_path->path->add_error("not_readable", 1); } else { $path = $form->add_path->path->value; @@ -73,7 +73,7 @@ class Admin_Server_Add_Controller extends Admin_Controller { $directories = array(); $path_prefix = $this->input->get("q"); foreach (glob("{$path_prefix}*") as $file) { - if (is_dir($file)) { + if (is_dir($file) && !is_link($file)) { $directories[] = $file; } } |