Skip to content

Commit

Permalink
Fix regexp escaping.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 12, 2014
1 parent 00016a7 commit 08d092b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/js/dimpbase.js
Expand Up @@ -536,7 +536,7 @@ var DimpBase = {
if (this.isQSearch() &&
DimpCore.getPref('qsearch_field') == h) {
r[h] = r[h].gsub(
new RegExp("(" + $F('horde-search-input').escapeHTML() + ")", "i"),
new RegExp("(" + RegExp.escape($F('horde-search-input')) + ")", "i"),
'<span class="qsearchMatch">#{1}</span>'
);
}
Expand Down

0 comments on commit 08d092b

Please sign in to comment.