]> git.datanom.net - qtadmin.git/blobdiff - show_headers.php
Enhance security
[qtadmin.git] / show_headers.php
index 0ff9a6e02f805b418f063d4c6ae55c6f74eef16e..e025ccdba68195d7af1db0928c6259c2856a112a 100644 (file)
@@ -11,7 +11,7 @@
         $id = $_GET['id'];
         $mail = unserialize($_SESSION['mailInfo'][$id]);
 
         $id = $_GET['id'];
         $mail = unserialize($_SESSION['mailInfo'][$id]);
 
-        if (false == $util->authorized($mail->recipient)) {
+        if (! is_object($mail) || false == $util->authorized($mail->recipient)) {
             header('Location: index.php');
             exit;
         }
             header('Location: index.php');
             exit;
         }
This page took 0.027921 seconds and 5 git commands to generate.