block uw mailbox abuse in imap select command instead of applying same
[squirrelmail.git] / src / right_main.php
index e644d8d150465b57a98756bdac92a7d410f61b89..0e33723ec033de420f0c4e9eeb7b0ebd4e17b780 100644 (file)
@@ -77,11 +77,6 @@ $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort,
 
 $mailbox = (isset($mailbox) && $mailbox) ? $mailbox : 'INBOX';
 
-/* compensate for the UW vulnerability. */
-if ($imap_server_type == 'uw' && (strstr($mailbox, '../') ||
-                                  substr($mailbox, 0, 1) == '/')) {
-   $mailbox = 'INBOX';
-}
 /**
  * Set the global settings for a mailbox and merge them with the usersettings
  * for the mailbox. In the future we can add more mailbox specific preferences