Commit 621a40ff authored by Robert Ricci's avatar Robert Ricci

Change vis-auth to run under suexec

parent dfd2ca98
......@@ -1067,7 +1067,9 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0)
# Proj-vis cookies
if ($EXP_VIS) {
setcookie("exp_vis_session", $opskey, 0, "/", $TBAUTHDOMAIN, 0);
exec("$TBLIBEXEC_DIR/write-vis-auth > /dev/null 2>&1 &");
SUEXEC($uid,"nobody",
"$TBLIBEXEC_DIR/write-vis-auth > /dev/null 2>&1 &",
$SUEXEC_ACTION_CONTINUE);
}
return 0;
......@@ -1182,7 +1184,9 @@ function DOLOGOUT($user) {
#
if ($EXP_VIS) {
setcookie("exp_vis_session", "", $timeout, "/", $TBAUTHDOMAIN, 0);
exec("$TBLIBEXEC_DIR/write-vis-auth > /dev/null 2>&1 &");
SUEXEC($uid,"nobody",
"$TBLIBEXEC_DIR/write-vis-auth > /dev/null 2>&1 &",
$SUEXEC_ACTION_CONTINUE);
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment