Skip to content

Commit f47f81c

Browse files
xh3n1suelaP
authored andcommitted
Use htmlentities to output the admin name on the edit list page
1 parent c57e5a9 commit f47f81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/admin/editlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
echo '<div class="label"><label for="owner">'.s('Owner').'</label></div><div class="field"><select name="owner">';
163163
foreach ($admins as $adminid => $adminname) {
164164
printf(' <option value="%d" %s>%s</option>', $adminid,
165-
$adminid == $list['owner'] ? 'selected="selected"' : '', $adminname);
165+
$adminid == $list['owner'] ? 'selected="selected"' : '', htmlentities($adminname));
166166
}
167167
echo '</select></div>';
168168
} else {

0 commit comments

Comments
 (0)