Try to create home directory if it's not exist. Fix file upload to compose dialog fails if user has no run access to filemanager and has no home folder set

This commit is contained in:
Hadi Nategh 2017-05-16 16:51:35 +02:00
parent 96aac588e4
commit d6bfd0aab2

View File

@ -908,7 +908,7 @@ class StreamWrapper implements StreamWrapperIface
while (($rel_path = Vfs::basename($url).($rel_path ? '/'.$rel_path : '')) &&
($url = Vfs::dirname($url)))
{
if (($stat = $this->url_stat($url,0,false,false)))
if (($stat = $this->url_stat($url,0,true,false)))
{
if (is_link($url) && ($lpath = Vfs::readlink($url)))
{