[fix] Missing check in browser for dir list
This commit is contained in:
parent
7bed0a56ea
commit
d301587995
|
@ -202,7 +202,11 @@ class m_bro {
|
||||||
$db->query("UPDATE browser SET lastdir = '$dir' WHERE uid = '$cuid';");
|
$db->query("UPDATE browser SET lastdir = '$dir' WHERE uid = '$cuid';");
|
||||||
$absolute = $this->convertabsolute($dir,false);
|
$absolute = $this->convertabsolute($dir,false);
|
||||||
if (!$absolute || !file_exists($absolute)) {
|
if (!$absolute || !file_exists($absolute)) {
|
||||||
$err->raise('bro',_("This directory do not exist"));
|
$err->raise('bro',_("This directory do not exist."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!is_readable($absolute)) {
|
||||||
|
$err->raise('bro',_("This directory is not readable."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$c = array();
|
$c = array();
|
||||||
|
|
Loading…
Reference in New Issue