Browse Source

* UW workaround improved, methinks.

Tyler Akins 24 years ago
parent
commit
b6015aa355
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/right_main.php

+ 2 - 1
src/right_main.php

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