From 26b6c99c0b1d05a37649570e9cc7443bea4a0cf6 Mon Sep 17 00:00:00 2001 From: nehresma Date: Tue, 23 Nov 1999 00:59:58 +0000 Subject: [PATCH 1/1] fixed a problem with mailboxes not url encoded for the urls . git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@19 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php3 | 16 +++++++++------- src/right_main.php3 | 5 ----- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/functions/mailbox_display.php3 b/functions/mailbox_display.php3 index ef78d7b3..c970dfa3 100644 --- a/functions/mailbox_display.php3 +++ b/functions/mailbox_display.php3 @@ -104,15 +104,17 @@ echo "NextGroup: $nextGroup -- "; echo "PrevGroup: $prevGroup
"; + $urlMailbox = urlencode($mailbox); + if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) { - echo "Next\n"; - echo "Previous\n"; + echo "Next\n"; + echo "Previous\n"; } else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) { - echo "Previous\n"; + echo "Previous\n"; } else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) { - echo "Next\n"; + echo "Next\n"; } /** This is the beginning of the message list table. It wraps around all messages */ @@ -124,9 +126,9 @@ echo " From"; echo " Date"; if ($sort == 0) - echo " \n"; + echo " \n"; else - echo " \n"; + echo " \n"; echo " Subject\n"; echo ""; @@ -138,4 +140,4 @@ echo "\n"; echo ""; /** End of message-list table */ } -?> \ No newline at end of file +?> diff --git a/src/right_main.php3 b/src/right_main.php3 index 7e16f0bd..32715d63 100644 --- a/src/right_main.php3 +++ b/src/right_main.php3 @@ -71,13 +71,8 @@ exit; } - // switch to the mailbox, and get the number of messages in it. selectMailbox($imapConnection, $mailbox, $numMessages); -// $numMessages = $numMessages - 1; // I did this so it's 0 based like the message array - - // make a URL safe $mailbox for use in the links - $urlMailbox = urlencode($mailbox); // Display the header at the top of the page displayPageHeader($mailbox); -- 2.25.1