From: ebullient Date: Sat, 4 Jan 2003 02:17:35 +0000 (+0000) Subject: Use new function to get GET vars X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5262d9a6138a071296e31d49841a448374c286e8 Use new function to get GET vars git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4369 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index fa0b88ce..c9a1892d 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -326,13 +326,8 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma global $startMessage, $username, $key, $imapServerAddress, $imapPort, $show_html_default, $sort, $has_unsafe_images; - if ( !check_php_version(4,1) ) { - global $_GET; - } - if(isset($_GET['view_unsafe_images'])) { - $view_unsafe_images = $_GET['view_unsafe_images']; - } else { - $view_unsafe_images = false; + if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { + $view_unsafe_images = false; } $body = ''; @@ -1596,9 +1591,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX') { ) ) ); - if(isset($_GET['view_unsafe_images'])) { - $view_unsafe_images = $_GET['view_unsafe_images']; - } else { + if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { $view_unsafe_images = false; } if (!$view_unsafe_images){