Skip to content
GitLab
Explore
Sign in
Commits on Source (3)
stop .forward file being a symlink
· b13af1e6
Chris Piper
authored
Mar 31, 2017
b13af1e6
Merge branch 'master' into beta
· 92f40d62
Imran Hussain
authored
Apr 01, 2017
92f40d62
Merge branch 'beta' into sucs-site
· 40c1079f
Imran Hussain
authored
Apr 01, 2017
40c1079f
Hide whitespace changes
Inline
Side-by-side
lib/session.php
View file @
40c1079f
...
...
@@ -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
]);
}
...
...