allow curly braces in upload glob

This commit is contained in:
Ralf Becker 2016-06-06 17:24:44 +02:00
parent 09e9f81545
commit 02705fd95a

View File

@ -403,9 +403,9 @@ function do_upload()
}
$archives = config_translate('upload');
echo "Uploading $archives\n";
echo "Uploading $archives to $config[upload_url]\n";
foreach(glob($archives) as $path)
foreach(glob($archives, GLOB_BRACE) as $path)
{
$label = null;
if (substr($path, -4) == '.zip')