Skip to content

Commit

Permalink
Add htmlspecialchars()
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCrankHank committed Dec 3, 2015
1 parent 3836c53 commit 3477ec0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/config/releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<div class='panel panel-success'>
<div class="panel-heading">Installed version</div>
<ul class="list-group">
<li id="installedVersion" class="list-group-item"><?php echo $data['installedVersion'] ?></li>
<li id="installedVersion" class="list-group-item"><?php echo htmlspecialchars($data['installedVersion']) ?></li>
<li class="list-group-item"><?php echo $data['installedRelease'] ?></li>
<li class="list-group-item"><a target="_blank" href="<?php echo $data['installedDownload'] ?>">Download</a></li>
<li class="list-group-item"><a target="_blank" href="<?php echo $data['installedDoc'] ?>">Documentation</a></li>
<li class="list-group-item"><a target="_blank" href="<?php echo htmlspecialchars($data['installedDownload']) ?>">Download</a></li>
<li class="list-group-item"><a target="_blank" href="<?php echo htmlspecialchars($data['installedDoc']) ?>">Documentation</a></li>
</ul>
</div>
</div>
Expand All @@ -26,7 +26,7 @@
<div class="row">
<div class="col-md-12">
<select title='Select release...' id="releaseChannelSelect">
<option selected><?php echo ucfirst($data['release']) ?></option>
<option selected><?php echo htmlspecialchars(ucfirst($data['release'])) ?></option>
<?php if ($data['release'] === 'stable') { ?>
<option>Beta</option>
<?php } else { ?>
Expand Down

0 comments on commit 3477ec0

Please sign in to comment.