Forráskód Böngészése

* 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 éve
szülő
commit
a9dd8cad50
1 módosított fájl, 1 hozzáadás és 1 törlés
  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';
    }