Changeset 56622
- Timestamp:
- 09/19/2023 04:41:22 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/wpAutomaticUpdater.php
r56559 r56622 611 611 $open_basedir_backup = ini_get( 'open_basedir' ); 612 612 // Allow access to the directory one level above the repository. 613 ini_set( 'open_basedir', wp_normalize_path( $abspath_grandparent ) );613 ini_set( 'open_basedir', sys_get_temp_dir() . PATH_SEPARATOR . wp_normalize_path( $abspath_grandparent ) ); 614 614 615 615 // Checking an allowed directory should succeed. … … 646 646 $open_basedir_backup = ini_get( 'open_basedir' ); 647 647 // Allow access to the directory one level above the repository. 648 ini_set( 'open_basedir', wp_normalize_path( $abspath_grandparent ) );648 ini_set( 'open_basedir', sys_get_temp_dir() . PATH_SEPARATOR . wp_normalize_path( $abspath_grandparent ) ); 649 649 650 650 // Checking a directory not within the allowed path should trigger an `open_basedir` warning.
Note: See TracChangeset
for help on using the changeset viewer.