Code Duplication    Length = 11-11 lines in 2 locations

htdocs/xoops_lib/modules/protector/include/postcheck_functions.php 2 locations

@@ 144-154 (lines=11) @@
141
    $_SESSION['protector_last_ip'] = $ip->asReadable();
142
143
    // SQL Injection "Isolated /*"
144
    if (!$protector->check_sql_isolatedcommentin(@$conf['isocom_action'] & 1)) {
145
        if (($conf['isocom_action'] & 8) && $can_ban) {
146
            $protector->register_bad_ips();
147
        } elseif (($conf['isocom_action'] & 4) && $can_ban) {
148
            $protector->register_bad_ips(time() + $protector->_conf['banip_time0']);
149
        }
150
        $protector->output_log('ISOCOM', $uid, true, 32);
151
        if ($conf['isocom_action'] & 2) {
152
            $protector->purge();
153
        }
154
    }
155
156
    // SQL Injection "UNION"
157
    if (!$protector->check_sql_union(@$conf['union_action'] & 1)) {
@@ 157-167 (lines=11) @@
154
    }
155
156
    // SQL Injection "UNION"
157
    if (!$protector->check_sql_union(@$conf['union_action'] & 1)) {
158
        if (($conf['union_action'] & 8) && $can_ban) {
159
            $protector->register_bad_ips();
160
        } elseif (($conf['union_action'] & 4) && $can_ban) {
161
            $protector->register_bad_ips(time() + $protector->_conf['banip_time0']);
162
        }
163
        $protector->output_log('UNION', $uid, true, 32);
164
        if ($conf['union_action'] & 2) {
165
            $protector->purge();
166
        }
167
    }
168
169
    if (!empty($_POST)) {
170
        // SPAM Check