summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSander van Leeuwen <sander@kraagjes.nl>2015-04-17 23:37:43 +0200
committerSander van Leeuwen <sander@kraagjes.nl>2015-04-17 23:37:43 +0200
commitff4bb92850db0bde679906710fd65c8c29c1d0c1 (patch)
tree13424168f4174027dd47c413c0620fe6bc841409 /usr
parent7d302dbf1515473e56d5e9eb3dca040be194e4c4 (diff)
downloadpfsense-ff4bb92850db0bde679906710fd65c8c29c1d0c1.zip
pfsense-ff4bb92850db0bde679906710fd65c8c29c1d0c1.tar.gz
- Remove htmlspecialchars; Form_Element->__toString() already encodes attribute values
- Use password input type for password Refs. #81
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_authentication.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php
index 6ea990a..ddd5345 100644
--- a/usr/local/www/diag_authentication.php
+++ b/usr/local/www/diag_authentication.php
@@ -104,20 +104,19 @@ $section->addInput(new Form_Input(
'username',
'Username',
'text',
- htmlspecialchars($pconfig['username']),
+ $pconfig['username'],
['placeholder' => 'Username']
));
$section->addInput(new Form_Input(
'password',
- 'Pasword',
- 'text',
- htmlspecialchars($pconfig['password']),
+ 'Password',
+ 'password',
+ $pconfig['password'],
['placeholder' => 'Password']
));
$form->add($section);
print $form;
-include("foot.inc")
-?>
+include("foot.inc"); \ No newline at end of file
OpenPOWER on IntegriCloud