diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-21 13:57:18 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-21 13:57:18 +0200 |
commit | 34739b7ec5b5bb26f993704b169937d3f04ed7c7 (patch) | |
tree | 93007cda15d450f33cc92635ee47966021a81bcb /core/templates/login.php | |
parent | 09d2f767276f6054148425966fda89e189d621f0 (diff) | |
download | nextcloud-server-34739b7ec5b5bb26f993704b169937d3f04ed7c7.tar.gz nextcloud-server-34739b7ec5b5bb26f993704b169937d3f04ed7c7.zip |
use new sanitizeHTML() function
Diffstat (limited to 'core/templates/login.php')
-rw-r--r-- | core/templates/login.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index a40bf5c330a..985cf90c2a2 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -7,7 +7,7 @@ <?php endif; ?> <p class="infield"> <label for="user" class="infield"><?php echo $l->t( 'Username' ); ?></label> - <input type="text" name="user" id="user" value="<?php echo !empty($_POST['user'])?htmlentities($_POST['user'],ENT_COMPAT,'utf-8').'"':'" autofocus'; ?> autocomplete="off" required /> + <input type="text" name="user" id="user" value="<?php echo !empty($_POST['user'])?OC_Util::sanitizeHTML($_POST['user'],ENT_COMPAT,'utf-8').'"':'" autofocus'; ?> autocomplete="off" required /> </p> <p class="infield"> <label for="password" class="infield"><?php echo $l->t( 'Password' ); ?></label> |