changeset 20:71b072bc1e4a

Converted encodeURI() to escape(), apparently this fixes the case where an ampersand is in the name of the component.
author Atul Varma <varmaa@toolness.com>
date Wed, 10 Mar 2010 13:04:13 -0800
parents 42d621a98c93
children d2f8db74214f
files js/file-bug.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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",