Throw exception if the homedir cannot be determined

master
Sven Slootweg 12 years ago
parent cd7f6af541
commit 8c1b3464ff

@ -93,6 +93,10 @@ class PathValidator
$userinfo = posix_getpwuid(posix_getuid());
$homedir = $userinfo['dir'];
}
else
{
throw new Exception("Could not find a way to get the home directory of the current user.");
}
$homedir = $this->RemoveTrailingSlash($homedir);

Loading…
Cancel
Save