# HG changeset patch # User Atul Varma # Date 1268255053 28800 # Node ID 71b072bc1e4aef8fed26f057c7a0281c2659ad5f # Parent 42d621a98c935b00f1e967c9a26a0700761ebfda Converted encodeURI() to escape(), apparently this fixes the case where an ampersand is in the name of the component. diff -r 42d621a98c93 -r 71b072bc1e4a js/file-bug.js --- a/js/file-bug.js Wed Mar 10 12:56:16 2010 -0800 +++ b/js/file-bug.js Wed Mar 10 13:04:13 2010 -0800 @@ -49,8 +49,8 @@ event.preventDefault(); var parts = $("input#category").val().split(EM_DASH); window.open(Bugzilla.BASE_UI_URL + "/enter_bug.cgi?" + - "product=" + encodeURI(parts[0]) + "&" + - "component=" + encodeURI(parts[1])); + "product=" + escape(parts[0]) + "&" + + "component=" + escape(parts[1])); }); Bugzilla.ajax({url: "/configuration",