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

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

No files matched your search

+1
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);