From b28f37bf8a196e2c2672633197b99703d9aa98e0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 20 Jan 2015 15:21:14 +0100 Subject: [PATCH] WEBUI: Fix the LovCombo regex handling - fixes #2598 --- src/webui/static/lovcombo/lovcombo-all.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webui/static/lovcombo/lovcombo-all.js b/src/webui/static/lovcombo/lovcombo-all.js index 789817deb..4463cf342 100644 --- a/src/webui/static/lovcombo/lovcombo-all.js +++ b/src/webui/static/lovcombo/lovcombo-all.js @@ -167,7 +167,8 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, { * @private */ ,onBeforeQuery:function(qe) { - qe.query = qe.query.replace(new RegExp(this.getCheckedDisplay() + '[ ' + this.separator + ']*'), ''); + var d = tvheadend.regexEscape(this.getCheckedDisplay()); + qe.query = qe.query.replace(new RegExp(d + '[ ' + this.separator + ']*'), ''); } // eo function onBeforeQuery // }}} // {{{ -- 2.47.3