Code Duplication    Length = 6-6 lines in 2 locations

htdocs/user.php 1 location

@@ 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();

htdocs/xoops_lib/Xoops.php 1 location

@@ 1517-1522 (lines=6) @@
1514
                $url = $xoops_url;
1515
            }
1516
        }
1517
        if (!$allowExternalLink && $pos = strpos($url, '://')) {
1518
            $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3);
1519
            if (strcasecmp(substr($url, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
1520
                $url = $xoops_url;
1521
            }
1522
        }
1523
        if (!defined('XOOPS_CPFUNC_LOADED')) {
1524
            $theme = 'default';
1525
        } else {