updated changelog
[squirrelmail.git] / src / search.php
index 79da86acd8aa95417a0f5303185b7f571041dd99..da18910d28bc37c3e9a76d025e13b12c75c418af 100644 (file)
@@ -59,7 +59,7 @@
    for ($i = 0; $i < count($boxes); $i++) {
          if (!in_array('noselect', $boxes[$i]['flags'])) {
          $box = $boxes[$i]['unformatted'];
-         $box2 = replace_spaces($boxes[$i]['unformatted-disp']);
+        $box2 = str_replace(' ', '&nbsp;', $boxes[$i]['unformatted-disp']);
          if ($mailbox == $box)
             echo "         <OPTION VALUE=\"$box\" SELECTED>$box2\n";
          else
@@ -72,8 +72,8 @@
    if (!isset($what))
        $what = '';
    $what_disp = ereg_replace(',', ' ', $what);
-   $what_disp = str_replace('\\', '\', $what_disp);
-   $what_disp = str_replace('\"', '"', $what_disp);
+   $what_disp = str_replace('\\\\', '\\', $what_disp);
+   $what_disp = str_replace('\\"', '"', $what_disp);
    $what_disp = str_replace('"', '&quot;', $what_disp);
    echo "          <INPUT TYPE=\"TEXT\" SIZE=\"20\" NAME=\"what\" VALUE=\"$what_disp\">\n";
    echo '        </TD>';