moving $_SERVER to sqgetGlobalVar
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Apr 2004 12:29:15 +0000 (12:29 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Apr 2004 12:29:15 +0000 (12:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7111 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/bug_report/bug_report.php

index 2e3ff1de1f331c6c0183dc82843db97b7c3d2366..d7c890c9843e766d246f21e25b28396d49f18f7d 100644 (file)
@@ -54,6 +54,11 @@ $browscap = ini_get('browscap');
 if(!empty($browscap)) {
     $browser = get_browser();
 }
+
+sqgetGlobalVar('HTTP_USER_AGENT', $HTTP_USER_AGENT, SQ_SERVER);
+if ( ! sqgetGlobalVar('HTTP_USER_AGENT', $HTTP_USER_AGENT, SQ_SERVER) )
+    $HTTP_USER_AGENT="Browser information is not available.";
+
 $body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
                 "  [ ]  True - No need to CC me when replying\n" .
                 "  [ ]  False - Please CC me when replying\n" .
@@ -69,7 +74,7 @@ $body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
                 "(Optional) I got really bored and here's a fix:\n\n\n" .
                 "----------------------------------------------\n" .
             "\nMy browser information:\n" .
-            '  '.$_SERVER['HTTP_USER_AGENT'] . "\n" ;
+            '  '.$HTTP_USER_AGENT . "\n" ;
            if(isset($browser)) {
                 $body_top .= "  get_browser() information (List)\n" .
                 Show_Array((array) $browser);