Fixed incorrect decoding of mailbox name... $_GET vars are already decoded.
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Mar 2003 17:42:08 +0000 (17:42 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Mar 2003 17:42:08 +0000 (17:42 +0000)
There are probably a whole bunch of other ones laying about, but this one
is fairly big in respect that you can view a folder that has a + in the name
(ie test+folder), but you cannot read mail in that folder.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4610 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php
src/download.php
src/printer_friendly_bottom.php
src/read_body.php

index 5654520f5440eb353b73e6f3c23dcadad28ec29e..b957f986f7699b4c6602558427455c676b1348ae 100644 (file)
@@ -34,7 +34,7 @@ function mime_structure ($bodystructure, $flags=array()) {
     if (!is_object($msg)) {
         include_once(SM_PATH . 'functions/display_messages.php');
         global $color, $mailbox;
-        displayPageHeader( $color, urldecode($mailbox) );
+        displayPageHeader( $color, $mailbox );
         echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n\n" .
          '<CENTER>';
         $errormessage  = _("SquirrelMail could not decode the bodystructure of the message");
index 16d93dcd506a07e2cd87bfcea542b47715f64c94..dcbc23a659da3d66caf2201e555b21110ac16f48 100644 (file)
@@ -36,7 +36,6 @@ if ( sqgetGlobalVar('passed_id', $temp, SQ_GET) ) {
 }  
 
 /* end globals */
-$mailbox = urldecode($mailbox);
 
 global $uid_support;
 
index c93048be202ee8b2dc94331feea4afcbbd135572..c334b0d2f4b6279cece562a7026c39b4c66a849c 100644 (file)
@@ -42,7 +42,6 @@ if (!isset($_GET['passed_ent_id'])) {
 /* end globals */
 
 $pf_cleandisplay = getPref($data_dir, $username, 'pf_cleandisplay');
-$mailbox = urldecode($mailbox);
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox);
 if (isset($messages[$mbx_response['UIDVALIDITY']][$passed_id])) {
index c3a2ec76fc25be8721e78b0f2aa5f08bff0b9a2b..535bcde3d88daeba531752b8b4a317d6133bc8ad 100644 (file)
@@ -694,10 +694,6 @@ if ( sqgetGlobalVar('startMessage', $temp) ) {
 /* end of get globals */
 global $uid_support, $sqimap_capabilities;
 
-if (isset($mailbox)) {
-    $mailbox = urldecode( $mailbox );
-}
-
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $mbx_response   = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true);