X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flogin.php;h=5bb549fcdfedfe1eaba481d73f0768d3b6bd6bb1;hb=15fa1598794b854786ecb42a0f1b48ef456e002c;hp=9a7a68149981284530d7eb40e34f12c82435c8bb;hpb=c0d968010e710870fdfee2f22d7cc9fad370c7a9;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 9a7a6814..5bb549fc 100644 --- a/src/login.php +++ b/src/login.php @@ -6,7 +6,7 @@ * This a simple login screen. Some housekeeping is done to clean * cookies and find language. * - * @copyright 1999-2012 The SquirrelMail Project Team + * @copyright 1999-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -63,7 +63,7 @@ $username_form_name = 'login_username'; $password_form_name = 'secretkey'; do_hook('login_cookie', $null); -$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : ''); +$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? sm_encode_html_special_chars($loginname) : ''); //FIXME: should be part of the template, not the core! /* Output the javascript onload function. */ @@ -100,7 +100,10 @@ if (! isset($color) || ! is_array($color)) { $color[8] = '#000000'; /* black Normal text */ } -displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE ); +// if any plugin returns TRUE here, the standard page header will be skipped +$temp = array($header); +if (!boolean_hook_function('login_before_page_header', $temp, 1)) + displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE );