| @@ 97-102 (lines=6) @@ | ||
| 94 | if (!empty($clean_input['xoops_redirect'])) { |
|
| 95 | $redirect = $clean_input['xoops_redirect']; |
|
| 96 | $isExternal = false; |
|
| 97 | if ($pos = strpos($redirect, '://')) { |
|
| 98 | $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3); |
|
| 99 | if (strcasecmp(substr($redirect, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) { |
|
| 100 | $isExternal = true; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | if (!$isExternal) { |
|
| 104 | header('Location: ' . $redirect); |
|
| 105 | exit(); |
|
| @@ 1508-1513 (lines=6) @@ | ||
| 1505 | $url = $xoops_url; |
|
| 1506 | } |
|
| 1507 | } |
|
| 1508 | if (!$allowExternalLink && $pos = strpos($url, '://')) { |
|
| 1509 | $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3); |
|
| 1510 | if (strcasecmp(substr($url, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) { |
|
| 1511 | $url = $xoops_url; |
|
| 1512 | } |
|
| 1513 | } |
|
| 1514 | if (!defined('XOOPS_CPFUNC_LOADED')) { |
|
| 1515 | $theme = 'default'; |
|
| 1516 | } else { |
|