Skip to content

Commit

Permalink
The LDAP bind password should not be interpreted as HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Horne committed Sep 7, 2017
1 parent 65b850d commit f7fc917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_code/php/management/site.php
Expand Up @@ -182,7 +182,7 @@

echo "<p>" . MANAGEMENT_SITE_LDAP_PORT . "<form><textarea id=\"ldap_port\">" . $row['ldap_port'] . "</textarea></form></p>";

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

echo "<p>" . MANAGEMENT_SITE_LDAP_BASE . "<form><textarea id=\"base_dn\">" . $row['basedn'] . "</textarea></form></p>";

Expand Down

0 comments on commit f7fc917

Please sign in to comment.