From: jervfors Date: Sat, 8 Mar 2008 10:59:22 +0000 (+0000) Subject: Updating use of sqgetGlobalVar. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=afbf184ca18815211509b4634beb23fb145142a3;p=squirrelmail.git Updating use of sqgetGlobalVar. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13020 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index 0a265568..32fafaaa 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -361,10 +361,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma // If there's no "view_unsafe_images" variable in the URL, turn unsafe // images off by default. - // FIXME: Update this code to use the default value FALSE. - if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { - $view_unsafe_images = false; - } + sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET, FALSE); $body = ''; $urlmailbox = urlencode($mailbox); @@ -1857,10 +1854,7 @@ function sq_fix_url($attname, &$attvalue, $message, $id, $mailbox,$sQuote = '"') // If there's no "view_unsafe_images" variable in the URL, turn unsafe // images off by default. - // FIXME: Update this code to use the default value FALSE. - if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { - $view_unsafe_images = false; - } + sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET, FALSE); $secremoveimg = '../images/' . _("sec_remove_eng.png"); @@ -2502,10 +2496,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links // If there's no "view_unsafe_images" variable in the URL, turn unsafe // images off by default. - // FIXME: Update this code to use the default value FALSE. - if( !sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET) ) { - $view_unsafe_images = false; - } + sqgetGlobalVar('view_unsafe_images', $view_unsafe_images, SQ_GET, FALSE); if (!$view_unsafe_images){ /**