浏览代码

refined uw security patch

lbergman 24 年之前
父节点
当前提交
2c1923ce1f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/options_highlight.php
  2. 1 1
      src/right_main.php

+ 1 - 1
src/options_highlight.php

@@ -78,7 +78,7 @@
          echo "<nobr><small>[<a href=\"options_highlight.php?action=edit&theid=$i\">" . _("Edit") . "</a>]&nbsp;[<a href=\"options_highlight.php?action=delete&theid=$i\">"._("Delete")."</a>]</small></nobr>\n";
          echo '   </td>';
          echo '   <td bgcolor="' . $message_highlight_list[$i]['color'] . "\">\n";
-         echo '      ' . $message_highlight_list[$i]['name'] . '&nbsp';
+         echo '      ' . $message_highlight_list[$i]['name'] . '&nbsp;';
          echo "   </td>\n";
          echo '   <td bgcolor="' . $message_highlight_list[$i]['color'] . "\">\n";
          echo '      '.$message_highlight_list[$i]['match_type'].' = ' . $message_highlight_list[$i]['value'];

+ 1 - 1
src/right_main.php

@@ -81,7 +81,7 @@
    }
 
    // compensate for the UW vulnerability
-   if ($imap_server_type == 'uw' && strstr($mailbox, '../')) {
+   if ($imap_server_type == 'uw' && strstr($mailbox, '/')) {
       $mailbox = 'INBOX';
    }