Skip to content

Commit 71a888f

Browse files
authored
Apply suggestion from @swissspidy
1 parent 463a2d7 commit 71a888f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Core_Command.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ private function remove_old_files_from_list( $files ) {
18791879
continue;
18801880
}
18811881
// Ensure the normalized parent directory is within ABSPATH
1882-
if ( 0 !== strpos( Utils\trailingslashit( $normalized_path ), $abspath_realpath_trailing ) && $normalized_path !== rtrim( $abspath_realpath_trailing, '/' ) ) {
1882+
if ( 0 !== strpos( Utils\trailingslashit( $normalized_path ), $abspath_realpath_trailing ) && rtrim( $abspath_realpath_trailing, '/' ) !== $normalized_path ) {
18831883
WP_CLI::debug( "Skipping symbolic link outside of ABSPATH: {$file}", 'core' );
18841884
continue;
18851885
}

0 commit comments

Comments
 (0)