Check que le mot de passe soit pas vide
This commit is contained in:
parent
c715cefa56
commit
0ff32f590d
|
@ -284,6 +284,10 @@ class m_ftp {
|
||||||
$dir=substr($dir,1);
|
$dir=substr($dir,1);
|
||||||
}
|
}
|
||||||
$r=$this->prefix_list();
|
$r=$this->prefix_list();
|
||||||
|
if (empty($pass)) {
|
||||||
|
$err->raise("ftp",_("Password can't be empty"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!in_array($prefixe,$r) || $prefixe=="") {
|
if (!in_array($prefixe,$r) || $prefixe=="") {
|
||||||
$err->raise("ftp",_("The chosen prefix is not allowed"));
|
$err->raise("ftp",_("The chosen prefix is not allowed"));
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue