Skip to content

Commit

Permalink
Merge pull request #1671 from RaspAP/fix/passphrase-htmlchars
Browse files Browse the repository at this point in the history
Output passphrase w/ htmlspecialchars()
  • Loading branch information
billz authored Oct 6, 2024
2 parents 246fd32 + 5f8f91e commit ba0bff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/wifi_stations/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<?php if ($network['protocol'] === 'Open') { ?>
<input type="password" disabled class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="" />
<?php } else { ?>
<input type="password" class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="<?php echo $network['passphrase'] ?>" data-target="#update<?php echo $index ?>" data-colors="#ffd0d0,#d0ffd0">
<input type="password" class="form-control" aria-describedby="passphrase" name="passphrase<?php echo $index ?>" value="<?php echo htmlspecialchars($network['passphrase']); ?>" data-target="#update<?php echo $index ?>" data-colors="#ffd0d0,#d0ffd0">
<div class="input-group-append">
<button class="btn btn-light js-toggle-password" type="button" data-target="[name=passphrase<?php echo $index ?>]" data-toggle-with="fas fa-eye-slash"><i class="fas fa-eye mx-2"></i></button>
</div>
Expand Down

0 comments on commit ba0bff9

Please sign in to comment.