From b13af1e6fc007cc23be8563a51792ff012d64e2c Mon Sep 17 00:00:00 2001 From: Chris Piper Date: Fri, 31 Mar 2017 14:06:03 +0100 Subject: [PATCH] stop .forward file being a symlink --- lib/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.php b/lib/session.php index 0387bb4..069a315 100644 --- a/lib/session.php +++ b/lib/session.php @@ -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]); } -- GitLab