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

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