Replace preg_quote with a more targeted regex to fix the problem where

directories get skipped.  Fixes #1460, I think.
This commit is contained in:
Bharat Mediratta
2011-01-09 18:38:09 -08:00
parent de5b06ae74
commit b7ffb0501e

View File

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