Skip to content

Commit

Permalink
Fixed issue #19036: Stored XSS via user's username (#3393)
Browse files Browse the repository at this point in the history
Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Aug 28, 2023
1 parent bf6b4f1 commit be839a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/userManagement/partial/addedituser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<?php if ($oUser->isNewRecord) : ?>
<?= $form->textField($oUser, 'users_name', ['id' => 'User_Form_users_name', 'required' => 'required']) ?>
<?php else : ?>
<input class="form-control" type="text" value="<?= $oUser->users_name ?>" disabled="true"/>
<input class="form-control" type="text" value="<?= CHtml::encode($oUser->users_name) ?>" disabled="true"/>
<?php endif; ?>

<?php echo $form->error($oUser, 'users_name'); ?>
Expand Down

0 comments on commit be839a7

Please sign in to comment.