Fix regular expression; folder name may contain special characters.

release-0.6
svncommit 17 years ago
parent 41841bc098
commit 492ba91415

@ -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)
{

Loading…
Cancel
Save