cleanup some plugins to make use of sqgetGlobalVar
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index 62fc882829df2812278e7bcd3cba0af4e2891eff..83c33df981a6152cab5e4fa624eff0f91d160540 100644 (file)
@@ -21,13 +21,12 @@ require_once(SM_PATH . 'functions/prefs.php');
 
 global $color, $uid_support;
 
 
 global $color, $uid_support;
 
-$passed_id = $_GET['passed_id'];
-$mailbox = $_GET['mailbox'];
-
-$username = $_SESSION['username'];
-$key = $_COOKIE['key'];
-$onetimepad = $_SESSION['onetimepad'];
+sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
+sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
 
 
+sqgetGlobalVar('username', $username, SQ_SESSION);
+sqgetGlobalVar('key', $key, SQ_COOKIE);
+sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);
 
 function CalcEntity($entString, $direction) {
     $result = $entString;
 
 function CalcEntity($entString, $direction) {
     $result = $entString;