From df781b53999f0656992929514a334867ab5b43af Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 23 Apr 2009 03:07:55 -0400
Subject: [PATCH] - Fix auto-complete function hangs with plus sign (#1485815)

---
 CHANGELOG         |    1 +
 program/js/app.js |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 458886b..f96d590 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+- Fix auto-complete function hangs with plus sign (#1485815)
 - Fix AJAX requests errors handler (#1485000)
 - Speed up message list displaying on IE
 - Fix read/write database recognition (#1485811)
diff --git a/program/js/app.js b/program/js/app.js
index 627ddf5..43e0aa9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2568,7 +2568,7 @@
     this.ksearch_value = q;
     
     this.display_message(this.get_label('searching'), 'loading', true);
-    this.http_post('autocomplete', '_search='+q);
+    this.http_post('autocomplete', '_search='+urlencode(q));
   };
 
   this.ksearch_query_results = function(results, search)

--
Gitblit v1.9.1