Skip to content
Snippets Groups Projects
Commit 7e622f8e authored by Olav Morken's avatar Olav Morken
Browse files

Utilities::redirect: Changed output to be xhtml compliant, and added autofocus...

Utilities::redirect: Changed output to be xhtml compliant, and added autofocus on the redirect link.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@269 44740490-163a-0410-bde0-09ae8108e29a
parent 972c5df4
No related branches found
No related tags found
No related merge requests found
...@@ -403,9 +403,20 @@ class SimpleSAML_Utilities { ...@@ -403,9 +403,20 @@ class SimpleSAML_Utilities {
header('Location: ' . $url, TRUE, $code); header('Location: ' . $url, TRUE, $code);
/* Show a minimal web page with a clickable link to the URL. */ /* Show a minimal web page with a clickable link to the URL. */
echo '<html><body><h1>Redirect</h1>You were redirected to: <a href="' . echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
htmlspecialchars($url) . '">' . htmlspecialchars($url) echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"' .
. '</a></body></html>'; ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
echo '<html xmlns="http://www.w3.org/1999/xhtml">';
echo '<head><title>Redirect</title></head>';
echo '<body>';
echo '<h1>Redirect</h1>';
echo '<p>';
echo 'You were redirected to: ';
echo '<a id="redirlink" href="' . htmlspecialchars($url) . '">' . htmlspecialchars($url) . '</a>';
echo '<script type="text/javascript">document.getElementById("redirlink").focus();</script>';
echo '</p>';
echo '</body>';
echo '</html>';
/* End script execution. */ /* End script execution. */
exit; exit;
......
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