preg_quote() the pattern we use for directory globs to avoid letting

the filename be treated as a regexp.  Fixes #1086.
This commit is contained in:
Bharat Mediratta
2010-04-04 14:28:09 -07:00
parent 78db1bb339
commit c82d24d475

View File

@@ -156,6 +156,7 @@ class Server_Add_Controller extends Admin_Controller {
$entry_id = null;
}
$file = preg_quote($file);
foreach (glob("$file/*") as $child) {
if (is_dir($child)) {
$queue[] = array($child, $entry_id);