diff options
author | jim-p <jimp@pfsense.org> | 2015-09-04 10:06:07 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-09-04 10:06:07 -0400 |
commit | 5d03e5a62abc8cce65e7558476dfe8ceaf86083a (patch) | |
tree | d785d30d80a51b900c64415aae6ba8acd1d0d7b7 /src | |
parent | 1ed8d35ba375d187c2f8cbda16341fd2a74e949e (diff) | |
download | pfsense-5d03e5a62abc8cce65e7558476dfe8ceaf86083a.zip pfsense-5d03e5a62abc8cce65e7558476dfe8ceaf86083a.tar.gz |
Encode auth server name before display.
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/local/www/system_usermanager_settings_test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/system_usermanager_settings_test.php b/src/usr/local/www/system_usermanager_settings_test.php index f2cdef8..ccb1c93 100755 --- a/src/usr/local/www/system_usermanager_settings_test.php +++ b/src/usr/local/www/system_usermanager_settings_test.php @@ -69,15 +69,15 @@ if (!$authcfg) { echo "<table>"; - echo "<tr><td>" . gettext("Attempting connection to") . " " . "<td><center>$auth_server</b></center></td>"; + echo "<tr><td>" . gettext("Attempting connection to") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; if (ldap_test_connection($authcfg)) { echo "<td><center><font color=green>OK</center></td></tr>"; - echo "<tr><td>" . gettext("Attempting bind to") . " " . "<td><center>$auth_server</b></center></td>"; + echo "<tr><td>" . gettext("Attempting bind to") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; if (ldap_test_bind($authcfg)) { echo "<td><center><font color=green>OK</center></td></tr>"; - echo "<tr><td>" . gettext("Attempting to fetch Organizational Units from") . " " . "<td><center>$auth_server</b></center></td>"; + echo "<tr><td>" . gettext("Attempting to fetch Organizational Units from") . " " . "<td><center>" . htmlspecialchars($auth_server). "</b></center></td>"; $ous = ldap_get_user_ous(true, $authcfg); if (count($ous)>1) { echo "<td><center><font color=green>OK</center></td></tr>"; |