From 19303888aa318c3a5c303f953cff0f47fb343db3 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 15 Mar 2001 16:39:10 +0000 Subject: [PATCH] * UW workaround improved, methinks. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1196 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/right_main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/right_main.php b/src/right_main.php index 5037fa01..5c69363c 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -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'; } -- 2.25.1