Allowed change of root directory for systems where it is not the current directory.

This commit is contained in:
Savetheinternet
2010-11-05 20:43:18 +11:00
parent f6abfa61c6
commit 247772323e
2 changed files with 12 additions and 3 deletions

View File

@@ -123,6 +123,7 @@
if($post['zip']) {
// Validate ZIP file
if(is_resource($zip = zip_open($post['zip'])))
// TODO: Check if it's not empty and has at least one (valid) image
zip_close($zip);
else
error(ERR_INVALIDZIP);