Skip to content
Snippets Groups Projects
Commit b13af1e6 authored by Chris Piper's avatar Chris Piper
Browse files

stop .forward file being a symlink

parent e7d69442
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ class Session
// the bash script returns 0 for no and 1 for yes, takes one arg, username
$this->email = shell_exec("../plugins/sucsunreadmail $user");
if (file_exists($info['homedirectory'][0] . "/.forward")) {
if (file_exists($info['homedirectory'][0] . "/.forward") && ! is_link($info['homedirectory'][0] . "/.forward")) {
$forward = file($info['homedirectory'][0] . "/.forward");
$this->email_forward = preg_replace("/\n/", "", $forward[0]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment