From 8bb9477e79a75d6b3a1a75955b43cd0212e408fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Lopes?= Date: Tue, 24 Feb 2015 23:46:24 +0100 Subject: [PATCH] issue #70 checking if dir is not a link as well --- core/class/uploader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/uploader.php b/core/class/uploader.php index d06e2f0..95bd473 100644 --- a/core/class/uploader.php +++ b/core/class/uploader.php @@ -253,7 +253,7 @@ public function __construct() { } // CHECK & CREATE UPLOAD FOLDER - if (!is_dir($this->typeDir)) { + if (!is_dir($this->typeDir) && !is_link($this->typeDir)) { if (!mkdir($this->typeDir, $this->config['dirPerms'])) $this->backMsg("Cannot create {dir} folder.", array('dir' => $this->type)); } elseif (!is_readable($this->typeDir))