From 04f8889b98523298d035f39378bc7e12f0a642bf Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 27 Dec 2004 21:14:55 +0000 Subject: [PATCH] Cvascript detection was broken when you changed your setting from never to autodetect. Fixes: #983614 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8477 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ functions/page_header.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 93f5db3d..200fc852 100644 --- a/ChangeLog +++ b/ChangeLog @@ -169,6 +169,8 @@ Version 1.5.1 -- CVS Fixes #1085377. - Reuploaded newmail plugin sounds. Fixes files uploaded to cvs without binary option. + - Changing your JavaScript preference required a re-login to work. + Fixes #983614. Version 1.5.0 -------------------- diff --git a/functions/page_header.php b/functions/page_header.php index 714d5af0..621b55d1 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -160,7 +160,7 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { $session = 0; } - if($javascript_on) { + if( $javascript_on || strpos($xtra, 'new_js_autodetect_results.value') ) { switch ( $module ) { case 'src/read_body.php': -- 2.25.1