Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
[squirrelmail.git] / src / login.php
index 9a7a68149981284530d7eb40e34f12c82435c8bb..8a8c74582872daa1a2d25501dbffa96221157c81 100644 (file)
@@ -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. */