Skip to content

Commit 23feb64

Browse files
committed
Fixed potential XSS on locations
1 parent b1ef3f5 commit 23feb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/macros/macros.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
// If the country value doesn't exist in the array, add it as a new option and select it so we don't drop that data
3333
if (!array_key_exists($selected, $countries_array)) {
34-
$select .= '<option value="' . $selected . '" selected="selected" role="option" aria-selected="true">' . $selected .' *</option> ';
34+
$select .= '<option value="' . e($selected) . '" selected="selected" role="option" aria-selected="true">' . e($selected) .' *</option> ';
3535
}
3636

3737
$select .= '</select>';

0 commit comments

Comments
 (0)