Skip to content

A free open source IT asset/license management system

Fixed potential XSS on locations

snipe23feb64b5ab3
diff --git a/resources/macros/macros.php b/resources/macros/macros.php
index 844c3f8be7..6846542609 100644
--- a/resources/macros/macros.php
+++ b/resources/macros/macros.php
@@ -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>';