kcfinder
kcfinder copied to clipboard
Normalize url
Hi,
If the first char is '/' you normalize it, else if http:// then you transform to absolute , it should be the oposite ...
$this->config['uploadURL'] = (substr($this->config['uploadURL'], 0, 1) === "/")
? path::rel2abs_url($this->config['uploadURL'])
: path::normalize($this->config['uploadURL']);