mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-31 21:27:36 +00:00
escape role name to prevent xss attack
This commit is contained in:
parent
283d051d3a
commit
9e92524fdb
|
|
@ -351,7 +351,7 @@ $(document).ready( function() {
|
|||
);
|
||||
$options = array();
|
||||
foreach($roles as $role) {
|
||||
$options[] = array($role->getID(), $role->getName(), ($currUser && $currUser->getRole()->getID() == $role->getID()));
|
||||
$options[] = array($role->getID(), htmlspecialchars($role->getName()), ($currUser && $currUser->getRole()->getID() == $role->getID()));
|
||||
}
|
||||
$this->formField(
|
||||
getMLText("role"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user