#30642 closed defect (bug) (duplicate)
Infinite Loop created when $target_parent is outside of base_dir
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.7 |
Component: | Filesystem API | Keywords: | |
Focuses: | administration | Cc: |
Description
We had a client who was moving from wordpress to plesk. As such his root directory changed from /home/foo/public_html/
to /var/www/vhosts/bar/
. He had set his upload path to /home/foo/public_html/wp-content
causing the server to throw a warning on line 1497 of wp-includes/functions.php
below resulting in an infinite loop that throws up errors.
We are using PHP 5.5.9.
// We need to find the permissions of the parent folder that exists and inherit that. $target_parent = dirname( $target ); while ( '.' != $target_parent && ! is_dir( $target_parent ) ) { $target_parent = dirname( $target_parent ); }
Change History (3)
Note: See
TracTickets for help on using
tickets.
Introduced in [25047].