Skip to content

Commit

Permalink
Merge pull request #1574 from marc-chappuis/bugfix
Browse files Browse the repository at this point in the history
[VD:abstract] bugfix `nameAccepted()` does not accept "0" problem rel. #1572
  • Loading branch information
nao-pon authored Aug 5, 2016
2 parents 15db606 + 2c4a03e commit 49aaf68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3035,7 +3035,7 @@ protected function uncrypt($hash) {
* @author Dmitry (dio) Levashov
**/
protected function nameAccepted($name) {
if (!json_encode($name)) {
if (json_encode($name)===false) {
return false;
}
if ($this->nameValidator) {
Expand Down

0 comments on commit 49aaf68

Please sign in to comment.