mirror of
https://github.com/snipe/snipe-it.git
synced 2025-10-29 11:21:21 +00:00
Fixed potential XSS on locations
This commit is contained in:
parent
b1ef3f51cb
commit
23feb64b5a
@ -31,7 +31,7 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class =
|
||||
|
||||
// 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
|
||||
if (!array_key_exists($selected, $countries_array)) {
|
||||
$select .= '<option value="' . $selected . '" selected="selected" role="option" aria-selected="true">' . $selected .' *</option> ';
|
||||
$select .= '<option value="' . e($selected) . '" selected="selected" role="option" aria-selected="true">' . e($selected) .' *</option> ';
|
||||
}
|
||||
|
||||
$select .= '</select>';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user