浏览代码

Cvascript detection was broken when you changed your setting from never
to autodetect. Fixes: #983614

Thijs Kinkhorst 20 年之前
父节点
当前提交
f4f0728bde
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      ChangeLog
  2. 1 1
      functions/page_header.php

+ 2 - 0
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
 --------------------

+ 1 - 1
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':