Escape flag name since it may contain backslashes.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 20 Oct 2009 21:08:27 +0000 (15:08 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 04:30:04 +0000 (22:30 -0600)
imp/js/search.js

index fe2fd8f..4e07455 100644 (file)
@@ -166,7 +166,7 @@ var ImpSearch = {
 
     getLabel: function(id)
     {
-        return $('search_criteria').down('[value=' + id + ']').getText() + ': ';
+        return $('search_criteria').down('[value="' + RegExp.escape(id) + '"]').getText() + ': ';
     },
 
     deleteCriteria: function(tr)