Protect against XSS from User field

pull/3812/head
Isaac Connor 2024-01-25 19:04:15 -05:00
parent 9505910847
commit bc1fb8eef2
1 changed files with 3 additions and 3 deletions

View File

@ -104,15 +104,15 @@ echo getNavBarHTML();
</tr>
<tr class="Name">
<th scope="row"><?php echo translate('Full Name') ?></th>
<td><input type="text" name="user[Name]" value="<?php echo $User->Name() ?>"/></td>
<td><input type="text" name="user[Name]" value="<?php echo validHtmlStr($User->Name()) ?>"/></td>
</tr>
<tr class="Email">
<th scope="row"><?php echo translate('Email Address') ?></th>
<td><input type="email" name="user[Email]" value="<?php echo $User->Email() ?>"/></td>
<td><input type="email" name="user[Email]" value="<?php echo validHtmlStr($User->Email()) ?>"/></td>
</tr>
<tr class="Phone">
<th scope="row"><?php echo translate('Phone') ?></th>
<td><input type="tel" name="user[Phone]" value="<?php echo $User->Phone() ?>"/></td>
<td><input type="tel" name="user[Phone]" value="<?php echo validHtmlStr($User->Phone()) ?>"/></td>
</tr>
<tr class="Language">
<th scope="row"><?php echo translate('Language') ?></th>