diff --git a/elfinder.src.html b/elfinder.src.html index 8bd7392e9..5771b9425 100644 --- a/elfinder.src.html +++ b/elfinder.src.html @@ -149,7 +149,7 @@ $('#finder').elfinder({ // url : 'php/connector.php', - url : 'php/connector.php', + url : 'php/connector.minimal.php', // transport : new elFinderSupportVer1(), // getFileCallback : function(files, fm) { // console.log(files); diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index bbb61f93a..c09c2a710 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -1846,6 +1846,7 @@ abstract class elFinderVolumeDriver { $f = $this->nameValidator; return $f($name); } + return preg_match($this->nameValidator, $name); } return true;