]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: Fix the LovCombo regex handling - fixes #2598
authorJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 14:21:14 +0000 (15:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 14:21:14 +0000 (15:21 +0100)
src/webui/static/lovcombo/lovcombo-all.js

index 789817deb7fa007bf8ed0609e753f9a4110a607d..4463cf34210acbdbe83e91e1acd379e0eb3370b6 100644 (file)
@@ -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
        // }}}
        // {{{