Hlaska „Please click here to continue“
- tomlp79
- Člen | 23
Pratele prosim poradte. Nektere deletrvajici skripty se ukonci vykreslenim stranky s hlaskou „Please click here to continue“. Nechapu proc.
Nasel jsem v Nette\Http\Response toto:
<?php
public function redirect($url, $code = self::S302_FOUND)
{
$this->setCode($code);
$this->setHeader('Location', $url);
if (preg_match('#^https?:|^\s*+[a-z0-9+.-]*+[^:]#i', $url)) {
$escapedUrl = htmlspecialchars($url, ENT_IGNORE | ENT_QUOTES, 'UTF-8');
echo "<h1>Redirect</h1>\n\n<p><a href=\"$escapedUrl\">Please click here to continue</a>.</p>";
}
}
?>
Co to presne dela? Co je ten regular?
Diky.