Fix potential XSS from Username

pull/4202/head
Isaac Connor 2022-03-13 08:34:44 -04:00 committed by Isaac Connor
parent 540748c923
commit 0db629fbba
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ global $CLANG;
</button>
</div>
<div class="modal-body">
<p><?php echo sprintf( $CLANG['CurrentLogin'], $user['Username'] ) ?></p>
<p><?php echo sprintf( $CLANG['CurrentLogin'], validHtmlStr($user['Username']) ) ?></p>
<?php if ( canView('System') ) { ?>
<p>Other logged in users:<br/>
<table class="table table-striped">