forked from leftypol/leftypol
Allowed change of root directory for systems where it is not the current directory.
This commit is contained in:
parent
f6abfa61c6
commit
247772323e
2 changed files with 12 additions and 3 deletions
1
post.php
1
post.php
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue