Services: Captive Portal: Vouchers - urlencode() selector items in vouchergrouplist, closes https://github.com/opnsense/core/issues/8319

Although this isn't the prettiest option in the world, it does solve the issue. It would have been better if we had "keyed" the items in some way so input is less sensitive for issues like these
This commit is contained in:
Ad Schellevis 2025-02-12 14:48:05 +01:00
parent f1f87d134b
commit a3d588cca2

View File

@ -63,7 +63,7 @@
if (status == "success") {
$('#voucher-groups').html("");
$.each(data, function(key, value) {
$('#voucher-groups').append($("<option></option>").attr("value", value).text(value));
$('#voucher-groups').append($("<option></option>").attr("value", encodeURIComponent(value)).text(value));
});
$('.selectpicker').selectpicker('refresh');
// link on change event