aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/js/bug-page-mod.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js
index 2af545d..2a8c817 100644
--- a/data/js/bug-page-mod.js
+++ b/data/js/bug-page-mod.js
@@ -1162,7 +1162,7 @@ function addNewLinks(d) {
if (product) {
var label = d.getElementById('field_container_product');
var span = d.createElement('span');
- var url = 'enter_bug.cgi?product=' + product.value;
+ var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value);
span.innerHTML = "(<a href='" + url + "'>new</a>)";
if (label && span) {
label.appendChild(span);
@@ -1172,7 +1172,7 @@ function addNewLinks(d) {
if (product && component) {
var select = d.querySelector("select#component");
var span = d.createElement('span');
- var url = 'enter_bug.cgi?product=' + product.value + '&component=' + component.value;
+ var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value) + '&component=' + encodeURIComponent(component.value);
span.innerHTML = "(<a href='" + url + "'>new</a>)";
if (select && span) {
select.parentNode.appendChild(span);