Browse Source

* Added the !== false bit to the strstr so that even if the first three
characters are ../, this would register a hit properly.

Tyler Akins 24 năm trước cách đây
mục cha
commit
a9dd8cad50
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/right_main.php

+ 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, '../') !== false ||
                                      substr($mailbox, 0, 1) == '/')) {
       $mailbox = 'INBOX';
    }