Need this check, otherwise some weird stuff occurs with exchange, and only
[squirrelmail.git] / functions / imap_search.php
index 934bce16bf4e3ba70887d02e9b7464ea7a1ffaa9..38832fc1be862cc1af0ec8fc60ea3d7ac8b743cb 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * imap_search.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * IMAP search routines
@@ -102,7 +102,7 @@ function sqimap_search($imapConnection, $search_where, $search_what, $mailbox,
         if (strstr($errors,'* SEARCH')) {
             return array();
         }
-        echo "<!-- $errors -->";
+        echo '<!-- '.htmlspecialchars($errors) .' -->';
     }