Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <?php | 1 <?php |
| 2 $url = $_GET['url']; | 2 $url = $_GET['url']; |
| 3 $refresh = $_GET['refresh']; | 3 $refresh = $_GET['refresh']; |
| 4 | 4 |
| 5 if (isset($refresh)) { | 5 if (isset($refresh)) { |
| 6 header("HTTP/1.1 200"); | 6 header("HTTP/1.1 200"); |
| 7 header("Refresh: $refresh; url=$url"); | 7 header("Refresh: $refresh; url=$url"); |
| 8 return; | 8 return; |
| 9 } | 9 } |
| 10 | 10 |
| 11 header("Location: $url"); | |
| 12 if (isset($_GET['cors_enabled'])) | |
| 13 header("Access-Control-Allow-Origin: *"); | |
|
Mike West
2014/06/23 06:13:37
It doesn't matter for any of these tests, but it m
sof
2014/06/23 06:42:18
Good idea, a redirect script this "high up" is bet
| |
| 14 | |
| 11 $code = $_GET['code']; | 15 $code = $_GET['code']; |
| 12 if (!isset($code)) | 16 if (!isset($code)) |
| 13 $code = 302; | 17 $code = 302; |
| 14 header("HTTP/1.1 $code"); | 18 header("HTTP/1.1 $code"); |
| 15 header("Location: $url"); | |
| 16 ?> | 19 ?> |
| OLD | NEW |