diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 8835a695..8c9b9dec 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -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();