diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 22:55:39 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 22:55:39 +0100 |
commit | 229c907a57a4a64730e7b58f59cb8f7f627bfaf3 (patch) | |
tree | 560c7cdae8b7a43898832b0989b7fb3b780501a8 /core/templates/login.php | |
parent | 40e51d13d2fd028fa13902b12814532d1de15f5a (diff) | |
download | nextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.tar.gz nextcloud-server-229c907a57a4a64730e7b58f59cb8f7f627bfaf3.zip |
[core] From echo to p
Diffstat (limited to 'core/templates/login.php')
-rw-r--r-- | core/templates/login.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 3be2b039b03..463b951c80f 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -2,54 +2,54 @@ <form method="post"> <fieldset> <?php if (!empty($_['redirect_url'])) { - echo '<input type="hidden" name="redirect_url" value="' . $_['redirect_url'] . '" />'; + print_unescaped('<input type="hidden" name="redirect_url" value="' . OC_Util::sanitizeHTML($_['redirect_url']) . '" />'); } ?> <ul> <?php if (isset($_['invalidcookie']) && ($_['invalidcookie'])): ?> <li class="errors"> - <?php echo $l->t('Automatic logon rejected!'); ?><br> - <small><?php echo $l->t('If you did not change your password recently, your account may be compromised!'); ?></small> + <?php p($l->t('Automatic logon rejected!')); ?><br> + <small><?php p($l->t('If you did not change your password recently, your account may be compromised!')); ?></small> <br> - <small><?php echo $l->t('Please change your password to secure your account again.'); ?></small> + <small><?php p($l->t('Please change your password to secure your account again.')); ?></small> </li> <?php endif; ?> <?php if (isset($_['invalidpassword']) && ($_['invalidpassword'])): ?> - <a href="<?php echo OC_Helper::linkToRoute('core_lostpassword_index') ?>"> + <a href="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_index')) ?>"> <li class="errors"> - <?php echo $l->t('Lost your password?'); ?> + <?php p($l->t('Lost your password?')); ?> </li> </a> <?php endif; ?> </ul> <p class="infield grouptop"> <input type="text" name="user" id="user" - value="<?php echo $_['username']; ?>"<?php echo $_['user_autofocus'] ? ' autofocus' : ''; ?> + value="<?php p($_['username']); ?>"<?php p($_['user_autofocus'] ? ' autofocus' : ''); ?> autocomplete="on" required/> - <label for="user" class="infield"><?php echo $l->t('Username'); ?></label> - <img class="svg" src="<?php echo image_path('', 'actions/user.svg'); ?>" alt=""/> + <label for="user" class="infield"><?php p($l->t('Username')); ?></label> + <img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/> </p> <p class="infield groupbottom"> <input type="password" name="password" id="password" value="" data-typetoggle="#show" - required<?php echo $_['user_autofocus'] ? '' : ' autofocus'; ?> /> - <label for="password" class="infield"><?php echo $l->t('Password'); ?></label> - <img class="svg" id="password-icon" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt=""/> + required<?php p($_['user_autofocus'] ? '' : ' autofocus'); ?> /> + <label for="password" class="infield"><?php p($l->t('Password')); ?></label> + <img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/> <input type="checkbox" id="show" name="show" /> <label for="show"></label> </p> <input type="checkbox" name="remember_login" value="1" id="remember_login"/><label - for="remember_login"><?php echo $l->t('remember'); ?></label> + for="remember_login"><?php p($l->t('remember')); ?></label> <input type="hidden" name="timezone-offset" id="timezone-offset"/> - <input type="submit" id="submit" class="login primary" value="<?php echo $l->t('Log in'); ?>"/> + <input type="submit" id="submit" class="login primary" value="<?php p($l->t('Log in')); ?>"/> </fieldset> </form> <?php if (!empty($_['alt_login'])) { ?> <form id="alternative-logins"> <fieldset> - <legend><?php echo $l->t('Alternative Logins') ?></legend> + <legend><?php p($l->t('Alternative Logins')) ?></legend> <ul> <?php foreach($_['alt_login'] as $login): ?> - <li><a class="button" href="<?php echo $login['href']; ?>" ><?php echo $login['name']; ?></a></li> + <li><a class="button" href="<?php print_unescaped($login['href']); ?>" ><?php p($login['name']); ?></a></li> <?php endforeach; ?> </ul> </fieldset> |