X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsecurity.inc.php;h=e4357c53b94e0fb12de3d95c74b8bdc9de7507c6;hb=07e4a9a091ac34c84129c230cde455de34e1ae91;hp=ae9d0086e5f5735c57e51e0807a1cf15ff3df530;hpb=ba6ae0466e1dbc75852f4b8e8bfa8c815e81504a;p=platal.git diff --git a/include/security.inc.php b/include/security.inc.php index ae9d008..e4357c5 100644 --- a/include/security.inc.php +++ b/include/security.inc.php @@ -1,6 +1,6 @@ setFrom("webmaster@" . $globals->mail->domain); $mailer->addTo($globals->core->admin_email); $mailer->setSubject("[Plat/al Security Alert] $title"); - $mailer->setTxtBody($body . "Identifiants de session :\n" . var_export($_SESSION, true) . "\n\n" + // Note: we can't do $session = var_export($_SESSION, true) as var_export + // doesn't handle circular dependency correctly. + ob_start(); + var_dump($_SESSION); + $session = ob_get_clean(); + $mailer->setTxtBody($body . "Identifiants de session :\n" . $session . "\n\n" ."Identifiants de connexion :\n" . var_export($_SERVER, true)); $mailer->send(); }