Skip to content

Commit

Permalink
In the admin UI do not interpret HTML characters in the admin password.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Horne committed Sep 7, 2017
1 parent 4f915de commit 2d1123b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_code/php/management/site.php
Expand Up @@ -102,7 +102,7 @@
echo "<p>" . MANAGEMENT_SITE_ADMIN_USER . "<form><textarea id=\"admin_username\">" . $row['admin_username'] . "</textarea></form>
</p>";

echo "<p>" . MANAGEMENT_SITE_ADMIN_PASSWORD . "<form><textarea id=\"admin_password\">" . $row['admin_password'] . "</textarea></form>
echo "<p>" . MANAGEMENT_SITE_ADMIN_PASSWORD . "<form><textarea id=\"admin_password\">" . htmlspecialchars($row['admin_password']) . "</textarea></form>
</p>";

echo "</div>";
Expand Down

0 comments on commit 2d1123b

Please sign in to comment.