function SystemArchiverTest::testArchiverOutOfPath

Tests out-of-path extraction protection.

File

modules/system/system.test, line 3251

Class

SystemArchiverTest
Test case for Archiver classes.

Code

public function testArchiverOutOfPath() {
    $this->_testArchiverOutOfPath('system_test_archive_rel.tar', 'Relative out-of-path extraction caught');
    $this->_testArchiverOutOfPath('system_test_archive_abs.tgz', 'Absolute out-of-path extraction caught');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.