Code Duplication    Length = 5-5 lines in 2 locations

htdocs/xoops_lib/modules/protector/class/protector.php 2 locations

@@ 124-128 (lines=5) @@
121
        if (is_array($val)) {
122
            foreach ($val as $subkey => $subval) {
123
                // check bad globals
124
                if (in_array($subkey, $this->_bad_globals, true)) {
125
                    $this->message .= "Attempt to inject '$subkey' was found.\n";
126
                    $this->_safe_contami   = false;
127
                    $this->last_error_type = 'CONTAMI';
128
                }
129
                $this->_initial_recursive($subval, $key . '_' . base64_encode($subkey));
130
            }
131
        } else {
@@ 937-941 (lines=5) @@
934
                }
935
936
                // anti dangerous extensions
937
                if (in_array($ext, $bad_extensions)) {
938
                    $this->message .= "Attempt to upload {$_file['name']}.\n";
939
                    $this->_safe_badext    = false;
940
                    $this->last_error_type = 'UPLOAD';
941
                }
942
943
                // anti camouflaged image file
944
                if (in_array($ext, $image_extensions)) {