summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-09-27 07:32:56 +0000
committersvncommit <devs@roundcube.net>2007-09-27 07:32:56 +0000
commit492ba91415719750b6b42a957329eb2e1a2e9e93 (patch)
tree9df5f1c9f23d5fd7d87bbda65b2420be245a4ce8 /program/js
parent41841bc0985959bc938200f3f3f119985be4daa6 (diff)
Fix regular expression; folder name may contain special characters.
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b2fccb717..ee72e4eff 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2463,7 +2463,7 @@ function rcube_webmail()
var reg = RegExp('['+RegExp.escape(this.env.delimiter)+']?[^'+RegExp.escape(this.env.delimiter)+']+$');
if (this.drag_active && this.check_droptarget(id) &&
(id != this.env.folder.replace(reg, '')) &&
- (!id.match(new RegExp('^'+this.env.folder+RegExp.escape(this.env.delimiter)))) &&
+ (!id.match(new RegExp('^'+RegExp.escape(this.env.folder+this.env.delimiter)))) &&
(row = document.getElementById(this.get_folder_row_id(id))))
if (find_in_array(this.env.defaultfolders, id)>=0)
{