Selaa lähdekoodia

* 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 vuotta sitten
vanhempi
commit
a9dd8cad50
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/right_main.php

+ 1 - 1
src/right_main.php

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