From: tokul Date: Mon, 12 Apr 2004 12:29:15 +0000 (+0000) Subject: moving $_SERVER to sqgetGlobalVar X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d319032594fa5dc0e9a69918f0901f8ee78af1a4;p=squirrelmail.git moving $_SERVER to sqgetGlobalVar git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7111 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index 2e3ff1de..d7c890c9 100644 --- a/plugins/bug_report/bug_report.php +++ b/plugins/bug_report/bug_report.php @@ -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);