From 797784f930ab79ccd5db1c5012dd806b4e6af4ec Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Tue, 29 Jul 2003 10:24:20 +0000 Subject: [PATCH] Forgot global ;) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5468 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_asearch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/imap_asearch.php b/functions/imap_asearch.php index 7a515cec..df6209cc 100644 --- a/functions/imap_asearch.php +++ b/functions/imap_asearch.php @@ -92,6 +92,7 @@ function sqimap_asearch_error_box($response, $query, $message) if (function_exists('sqimap_error_box')) sqimap_error_box($title, $query, $message_title, $message); else { //Straight copy of 1.5 imap_general.php:sqimap_error_box(). Can be removed at a later time + global $color; require_once(SM_PATH . 'functions/display_messages.php'); $string = "\n" . $title . "
\n"; if ($query != '') @@ -153,8 +154,8 @@ function sqimap_asearch_encode_string($what, $charset) $what = mb_convert_encoding($what, 'JIS', 'auto'); //if (ereg("[\"\\\r\n\x80-\xff]", $what)) if (preg_match('/["\\\\\r\n\x80-\xff]/', $what)) - return '{' . strlen($what) . "}\r\n" . $what; /* 4.3 literal form */ - return '"' . $what . '"'; /* 4.3 quoted string form */ + return '{' . strlen($what) . "}\r\n" . $what; // 4.3 literal form + return '"' . $what . '"'; // 4.3 quoted string form } /* -- 2.25.1