diff --git a/class.processor.php b/class.processor.php index bf108f304368a9144e01f16cdab0d714a983afe5..aecaeef4c3df1a8a1a2150925780c7a311a7cfca 100644 --- a/class.processor.php +++ b/class.processor.php @@ -27,7 +27,8 @@ class Processor { } public function process() { - if (!is_dir(dirname($this->target)) && !mkdir(dirname($this->target))) + if (!is_dir(dirname($this->target)) && + !mkdir(dirname($this->target), 0777, true)) return false; if (!move_uploaded_file($this->source, $this->target)) return false;