[fix] Missing check in browser for dir list

This commit is contained in:
alban 2014-07-10 00:05:36 +02:00
parent 7bed0a56ea
commit d301587995
1 changed files with 5 additions and 1 deletions

View File

@ -202,7 +202,11 @@ class m_bro {
$db->query("UPDATE browser SET lastdir = '$dir' WHERE uid = '$cuid';");
$absolute = $this->convertabsolute($dir,false);
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;
}
$c = array();