Skip to content

Commit

Permalink
issue sunhater#70 checking if dir is not a link as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lfglopes committed Feb 24, 2015
1 parent b7f3b82 commit 8bb9477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8bb9477

Please sign in to comment.