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