updated changelog
[squirrelmail.git] / src / folders.php
index a3acfa8137beb7c5ccbb3249835107863019bbe7..436cb362c3c850b01192e9c9437aec4d6e2cda06 100644 (file)
              strtolower($boxes[$i]["unformatted"]) != "inbox.trash"))
            {
               $box = $boxes[$i]["unformatted-dm"];
-              $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+              $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]);
               echo "         <OPTION VALUE=\"$box\">$box2\n";
            }
       }
    echo "<TT><SELECT NAME=subfolder>\n";
    if (strtolower($imap_server_type) != "courier"){
      if ($default_sub_of_inbox == false)
-       echo '<OPTION SELECTED>[ '._("None")." ]\n";
+       echo '<OPTION SELECTED VALUE="">[ '._("None")." ]\n";
      else
-       echo '<OPTION>[ '._("None")." ]\n";
+       echo '<OPTION VALUE="">[ '._("None")." ]\n";
    }
 
    for ($i = 0; $i < count($boxes); $i++) {
       if (!in_array('noinferiors', $boxes[$i]['flags'])) {
          if ((strtolower($boxes[$i]["unformatted"]) == "inbox") && ($default_sub_of_inbox == true)) {
             $box = $boxes[$i]["unformatted"];
-            $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+            $box2 = str_replace(' ', '&nbsp;', $boxes[$i]["unformatted-disp"]);
             echo "<OPTION SELECTED VALUE=\"$box\">$box2\n";
          } else {
             $box = $boxes[$i]["unformatted"];
-            $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+            $box2 = str_replace(' ', '&nbsp;', $boxes[$i]["unformatted-disp"]);
            if (strtolower($imap_server_type) != "courier" ||
                strtolower($box) != "inbox.trash")
              echo "<OPTION VALUE=\"$box\">$box2\n";
             ($boxes[$i]["unformatted"] != $sent_folder)) 
            {   
               $box = $boxes[$i]["unformatted-dm"];
-              $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+              $box2 = str_replace(' ', '&nbsp;', $boxes[$i]["unformatted-disp"]);
               if (strtolower($imap_server_type) != "courier" || strtolower($box) != "inbox.trash")
                  echo "<OPTION VALUE=\"$box\">$box2\n";
            }
             ($boxes[$i]["unformatted"] != $sent_folder)) 
            {   
               $box = $boxes[$i]["unformatted-dm"];
-              $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
+              $box2 = str_replace(' ', '&nbsp;', $boxes[$i]["unformatted-disp"]);
               echo "         <OPTION VALUE=\"$box\">$box2\n";
            }
       }