Skip to content

Commit

Permalink
prevent low severity xss in member profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Gneady committed Jul 4, 2021
1 parent 953bb27 commit 3edc6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/membership_profile.php
Expand Up @@ -111,7 +111,7 @@
include_once("$currDir/header.php"); ?>

<div class="page-header">
<h1><?php echo sprintf($Translation['Hello user'], $mi['username']); ?></h1>
<h1><?php echo sprintf($Translation['Hello user'], htmlspecialchars($mi['username'])); ?></h1>
</div>
<div id="notify" class="alert alert-success" style="display: none;"></div>
<div id="loader" style="display: none;"><i class="glyphicon glyphicon-refresh"></i> <?php echo $Translation['Loading ...']; ?></div>
Expand Down Expand Up @@ -223,7 +223,7 @@
<div class="panel-body">
<div class="form-group">
<label><?php echo $Translation['group']; ?></label>
<div class="form-control-static"><?php echo $mi['group']; ?></div>
<div class="form-control-static"><?php echo htmlspecialchars($mi['group']); ?></div>
</div>
</div>
</div>
Expand Down

0 comments on commit 3edc6c5

Please sign in to comment.