mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Merge pull request #720 from Flatta/secfix-xss-pwreset
Fix XSS in Password Reset
This commit is contained in:
commit
a162fe06e8
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="action" value="confirm">
|
<input type="hidden" name="action" value="confirm">
|
||||||
<input type="hidden" name="user" value="<?php echo $_GET['user'];?>">
|
<input type="hidden" name="user" value="<?=htmlentities($_GET['user'], ENT_QUOTES|ENT_HTML5)?>">
|
||||||
<input tabindex="1" type="text" size="20px" style="width:240px" name="code" class="vst-input">
|
<input tabindex="1" type="text" size="20px" style="width:240px" name="code" class="vst-input">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding: 12px 0 0 2px;">
|
<td style="padding: 12px 0 0 2px;">
|
||||||
<input type="hidden" name="action" value="confirm" >
|
<input type="hidden" name="action" value="confirm" >
|
||||||
<input type="hidden" name="user" value="<?php echo $_GET['user'];?>" >
|
<input type="hidden" name="user" value="<?=htmlentities($_GET['user'], ENT_QUOTES|ENT_HTML5)?>" >
|
||||||
<input type="hidden" name="code" value="<?php echo $_GET['code'];?>" >
|
<input type="hidden" name="code" value="<?=htmlentities($_GET['code'], ENT_QUOTES|ENT_HTML5)?>" >
|
||||||
<?php print __('New Password');?>
|
<?php print __('New Password');?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue