Project

General

Profile

Revision c7768a53

Added by Geoffroy Desvernay about 3 years ago

Udpate to 7.78

View differences:

drupal7/modules/system/system.tar.inc
2178 2178
                            }
2179 2179
                        }
2180 2180
                    } elseif ($v_header['typeflag'] == "2") {
2181
                        if (strpos(realpath(dirname($v_header['link'])), realpath($p_path)) !== 0) {
2182
                            $this->_error(
2183
                                'Out-of-path file extraction {'
2184
                                . $v_header['filename'] . ' --> ' .
2185
                                $v_header['link'] . '}'
2186
                            );
2187
                            return false;
2188
                        }
2181 2189
                        if (!$p_symlinks) {
2182 2190
                            $this->_warning('Symbolic links are not allowed. '
2183 2191
                                . 'Unable to extract {'

Also available in: Unified diff