mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-24 00:24:07 +03:00
Add validation and 'htmlspecialchars' to keep Teun from breaking stuff
This commit is contained in:
parent
858830915f
commit
b457495426
3 changed files with 20 additions and 0 deletions
|
@ -21,6 +21,7 @@ function get_all_users() {
|
|||
$r = $db->query('SELECT id, emailaddress, isadmin FROM users');
|
||||
$ret = array();
|
||||
while ($row = $r->fetchArray()) {
|
||||
$row['emailaddress'] = htmlspecialchars($row['emailaddress']);
|
||||
array_push($ret, $row);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue