소스 검색

* 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 년 전
부모
커밋
a9dd8cad50
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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';
    }