Skip to content
Snippets Groups Projects
Commit fc1ab9bf authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Reformat the no_cookie error page code.

parent 7eaea621
No related branches found
No related tags found
No related merge requests found
...@@ -10,13 +10,13 @@ $retry = htmlspecialchars($this->t('{core:no_cookie:retry}')); ...@@ -10,13 +10,13 @@ $retry = htmlspecialchars($this->t('{core:no_cookie:retry}'));
$this->data['header'] = $header; $this->data['header'] = $header;
$this->includeAtTemplateBase('includes/header.php'); $this->includeAtTemplateBase('includes/header.php');
echo('<h2>' . $header . '</h2>'); echo('<h2>'.$header.'</h2>');
echo('<p>' . $description . '</p>'); echo('<p>'.$description.'</p>');
if ($retryURL !== NULL) { if ($retryURL !== null) {
echo('<ul>'); echo('<ul>');
echo('<li><a href="' . htmlspecialchars($retryURL) . '" id="retry">' . $retry . '</a></li>'); echo('<li><a href="'.htmlspecialchars($retryURL).'" id="retry">'.$retry.'</a></li>');
echo('</ul>'); echo('</ul>');
} }
$this->includeAtTemplateBase('includes/footer.php'); $this->includeAtTemplateBase('includes/footer.php');
<?php <?php
if (isset($_REQUEST['retryURL'])) { if (isset($_REQUEST['retryURL'])) {
$retryURL = (string)$_REQUEST['retryURL']; $retryURL = (string) $_REQUEST['retryURL'];
$retryURL = \SimpleSAML\Utils\HTTP::checkURLAllowed($retryURL); $retryURL = \SimpleSAML\Utils\HTTP::checkURLAllowed($retryURL);
} else { } else {
$retryURL = NULL; $retryURL = null;
} }
$globalConfig = SimpleSAML_Configuration::getInstance(); $globalConfig = SimpleSAML_Configuration::getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment