mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Add CDATA to Javascript
This commit is contained in:
parent
5f60ed9b6a
commit
a4e2f9e9bb
@ -4801,7 +4801,7 @@ function redirect($url, $message='', $delay=-1) {
|
||||
@header('Location: '.$url);
|
||||
//another way for older browsers and already sent headers (eg trailing whitespace in config.php)
|
||||
echo '<meta http-equiv="refresh" content="'. $delay .'; url='. $encodedurl .'" />';
|
||||
echo '<script type="text/javascript">'. "\n" .'<!--'. "\n". "location.replace('$surl');". "\n". '//-->'. "\n". '</script>'; // To cope with Mozilla bug
|
||||
echo '<script type="text/javascript">'. "\n" .'//<![CDATA['. "\n". "location.replace('$surl');". "\n". '//]]>'. "\n". '</script>'; // To cope with Mozilla bug
|
||||
die;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user