mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-10 20:39:09 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user