66 <?php include __DIR__ . '/../common-head-elements.php ' ?>
77
88 <?php
9- $ siteKey = htmlentities ($ this ->data ['recaptcha.siteKey ' ] ?? null );
9+ $ siteKey = htmlentities ($ this ->data ['recaptcha.siteKey ' ]);
1010 if (! empty ($ siteKey )) {
1111 ?>
1212 <script src='https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit'
@@ -38,11 +38,11 @@ function onRecaptchaLoad() {
3838 <?php include __DIR__ . '/../common-announcement.php ' ?>
3939
4040
41- <form method="POST" action=" <?= htmlentities ( $ _SERVER [ ' PHP_SELF ' ]) ?> " >
41+ <form method="POST">
4242 <input type="hidden" name="AuthState"
43- value="<?= htmlentities ($ this ->data ['stateparams ' ]['AuthState ' ] ?? null ) ?> " />
43+ value="<?= htmlentities ($ this ->data ['stateparams ' ]['AuthState ' ]) ?> " />
4444 <?php
45- $ csrfToken = htmlentities ($ this ->data ['csrfToken ' ] ?? null );
45+ $ csrfToken = htmlentities ($ this ->data ['csrfToken ' ]);
4646 ?>
4747 <input type="hidden" name="csrf-token" value="<?= $ csrfToken ?> " />
4848
@@ -67,7 +67,7 @@ function onRecaptchaLoad() {
6767 <?= $ this ->t ('{material:login:label_username} ' ) ?>
6868 </label>
6969 <?php
70- $ username = htmlentities ($ this ->data ['username ' ] ?? null );
70+ $ username = htmlentities ($ this ->data ['username ' ]);
7171 ?>
7272 <input type="text" name="username" class="mdl-textfield__input"
7373 value="<?= $ username ?> "
@@ -87,7 +87,7 @@ function onRecaptchaLoad() {
8787 $ errorCode = htmlentities ($ this ->data ['errorcode ' ]);
8888 if ($ errorCode == 'WRONGUSERPASS ' ) {
8989 $ errorMessageKey = $ this ->data ['errorparams ' ][1 ] ?? '{material:login:error_wronguserpass} ' ;
90- $ errorMessageTokens = $ this ->data ['errorparams ' ][2 ] ?? null ;
90+ $ errorMessageTokens = $ this ->data ['errorparams ' ][2 ];
9191
9292 $ message = htmlentities ($ this ->t ($ errorMessageKey , $ errorMessageTokens ));
9393 ?>
@@ -108,7 +108,7 @@ function onRecaptchaLoad() {
108108
109109 <div class="mdl-card__actions" layout-children="row">
110110 <?php
111- $ forgotPasswordUrl = htmlentities ($ this ->data ['forgotPasswordUrl ' ] ?? null );
111+ $ forgotPasswordUrl = htmlentities ($ this ->data ['forgotPasswordUrl ' ]);
112112 if (! empty ($ forgotPasswordUrl )) {
113113 ?>
114114 <a href="<?= $ forgotPasswordUrl ?> " target="_blank"
0 commit comments