Skip to content

Commit

Permalink
State selector: fix XSS vulnarability
Browse files Browse the repository at this point in the history
Escape id_state value before rendering it to form javascript

Related to thirtybees#774
  • Loading branch information
getdatakick authored and eschiendorfer committed Mar 23, 2022
1 parent ca1a05c commit eae49f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-dev/themes/default/template/helpers/form/form.tpl
Expand Up @@ -1036,7 +1036,7 @@
{if isset($fields_value.id_state)}
if ($('#id_country') && $('#id_state'))
{
ajaxStates({$fields_value.id_state});
ajaxStates({$fields_value.id_state|intval});
$('#id_country').change(function() {
ajaxStates();
});
Expand Down

0 comments on commit eae49f0

Please sign in to comment.