$NetBSD: patch-ab,v 1.1 2001/03/29 16:13:08 bouyer Exp $ --- src/right_main.php.orig Thu Mar 29 17:22:25 2001 +++ src/right_main.php Thu Mar 29 17:20:01 2001 @@ -81,7 +81,8 @@ } // 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'; }