--- /tmp/uploader.php 2015-12-04 15:27:34.000000000 +0100 +++ third_party/kcfinder/core/class/uploader.php 2015-12-04 16:01:34.000000000 +0100 @@ -94,6 +94,11 @@ return property_exists($this, $property) ? $this->$property : null; } + protected function getSymLink($path) { + //return is_link($path) ? readlink($path) : $path; + return realpath($path); + } + public function __construct() { // crsf_session @@ -223,7 +228,7 @@ $this->config['uploadDir'] = strlen($this->config['uploadDir']) ? path::normalize($this->config['uploadDir']) : path::url2fullPath("/$path"); - $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeDir = $this->getSymLink("{$this->config['uploadDir']}/{$this->type}"); $this->typeURL = "{$this->config['uploadURL']}/{$this->type}"; // SITE ROOT @@ -231,7 +236,7 @@ $this->config['uploadDir'] = strlen($this->config['uploadDir']) ? path::normalize($this->config['uploadDir']) : path::normalize($_SERVER['DOCUMENT_ROOT']); - $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeDir = $this->getSymLink("{$this->config['uploadDir']}/{$this->type}"); $this->typeURL = "/{$this->type}"; // ABSOLUTE & RELATIVE @@ -242,7 +247,7 @@ $this->config['uploadDir'] = strlen($this->config['uploadDir']) ? path::normalize($this->config['uploadDir']) : path::url2fullPath($this->config['uploadURL']); - $this->typeDir = "{$this->config['uploadDir']}/{$this->type}"; + $this->typeDir = $this->getSymLink("{$this->config['uploadDir']}/{$this->type}"); $this->typeURL = "{$this->config['uploadURL']}/{$this->type}"; }