diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 08:21:43 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-03 08:21:43 +0000 |
| commit | 9ab3ba10b8eb37b4852f69185f39d0a628496f4c (patch) | |
| tree | 795223e6054a6976e8d67838fa01057621ca56a5 | |
| parent | d52a5770fa69e96c3898479e752bded1bac58283 (diff) | |
- Fix autocomplete results are wrongly displayed when search string contains e.g. a dot character
git-svn-id: https://svn.roundcube.net/trunk@3704 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index fc9ef77e0..370bdd4c3 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3476,7 +3476,7 @@ function rcube_webmail() for (i=0; i < a_results.length; i++) { text = typeof a_results[i] == 'object' ? a_results[i].name : a_results[i]; li = document.createElement('LI'); - li.innerHTML = text.replace(new RegExp('('+s_val+')', 'ig'), '##$1%%').replace(/</g, '<').replace(/>/g, '>').replace(/##([^%]+)%%/g, '<b>$1</b>'); + li.innerHTML = text.replace(new RegExp('('+RegExp.escape(s_val)+')', 'ig'), '##$1%%').replace(/</g, '<').replace(/>/g, '>').replace(/##([^%]+)%%/g, '<b>$1</b>'); li.onmouseover = function(){ ref.ksearch_select(this); }; li.onmouseup = function(){ ref.ksearch_click(this) }; li._rcm_id = i; |
