Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI: Fix the LovCombo regex handling - fixes #2598
  • Loading branch information
perexg committed Jan 20, 2015
1 parent e565e7c commit b28f37b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webui/static/lovcombo/lovcombo-all.js
Expand Up @@ -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
// }}}
// {{{
Expand Down

0 comments on commit b28f37b

Please sign in to comment.