summaryrefslogtreecommitdiffstats
path: root/core/templates/login.php
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vitty@altlinux.ru>2012-05-10 09:10:53 +0000
committerVitaly Kuznetsov <vitty@altlinux.ru>2012-05-10 09:10:53 +0000
commit6f981738bb5285d01e839ff640c163acf1b2a184 (patch)
tree47040a95a2597de34784151dfaec334b2e034923 /core/templates/login.php
parenta9d7c67bf2e906fceea40b41f4780e623226fdff (diff)
downloadnextcloud-server-6f981738bb5285d01e839ff640c163acf1b2a184.tar.gz
nextcloud-server-6f981738bb5285d01e839ff640c163acf1b2a184.zip
Fix some non-utf8-friendly htmlentities (resulting in wrong display of utf8-encoded directory names for example)
Diffstat (limited to 'core/templates/login.php')
-rw-r--r--core/templates/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index 4035dfe8a5a..f693033b0e5 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']).'"':'" autofocus'; ?> autocomplete="off" required />
+ <input type="text" name="user" id="user" value="<?php echo !empty($_POST['user'])?htmlentities($_POST['user'],ENT_COMPAT | ENT_HTML401,'utf-8').'"':'" autofocus'; ?> autocomplete="off" required />
</p>
<p class="infield">
<label for="password" class="infield"><?php echo $l->t( 'Password' ); ?></label>