Properly escape list of messages when creating a new entry
authorMagnus Hagander <[email protected]>
Tue, 8 Dec 2020 15:32:04 +0000 (16:32 +0100)
committerMagnus Hagander <[email protected]>
Tue, 8 Dec 2020 21:17:47 +0000 (22:17 +0100)
This has been broken since day 1... oops.

Noted by Vik Fearing

pgcommitfest/commitfest/static/commitfest/js/commitfest.js

index 69c41ecec3092447f3f279a28e5478c2d942f305..2f1eddae78d4e0d522f9564858d422c552cd571f 100644 (file)
@@ -20,7 +20,7 @@ function findLatestThreads() {
          sel = $('#attachThreadList');
          sel.find('option').remove();
          $.each(data, function(m,i) {
-            sel.append('<option value="' + i.msgid + '">' + i.from + ': ' + i.subj + ' (' + i.date + ')</option>');
+             sel.append($('<option/>').text(i.from + ': ' + i.subj + ' (' + i.date + ')').val(i.msgid));
          });
    }).always(function() {
       $('#attachThreadListWrap').removeClass('loading');