mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Check if file is readable
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
$hosts = file_exists("/etc/hosts") ? file("/etc/hosts") : array();
|
||||
|
||||
function checkfile($filename) {
|
||||
if(file_exists($filename))
|
||||
if(file_readable($filename))
|
||||
{
|
||||
return $filename;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user