diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-03 13:57:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-03 13:57:47 +0000 |
| commit | 4f39e7ed2a494f52b2d18817df2ea79830cbedcf (patch) | |
| tree | f654f44e299ed8b7ce72c5e304367a2b31709047 /roundcubemail | |
| parent | c5adb8a7071f15a5a1e953b9149241cdc8373733 (diff) | |
- Check current search value in ksearch_query_results() to prevent from wrong regexp replacement when it's empty
git-svn-id: https://svn.roundcube.net/trunk@5019 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/js/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index f002dcae3..1c35ad0d9 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3640,8 +3640,12 @@ function rcube_webmail() this.ksearch_query_results = function(results, search, reqid) { + // search stopped in meantime? + if (!this.ksearch_value) + return; + // ignore this outdated search response - if (this.ksearch_input && this.ksearch_value && search != this.ksearch_value) + if (this.ksearch_input && search != this.ksearch_value) return; // display search results |
