[wp-trac] [WordPress Trac] #43417: Infinite loop in wp_mkdir_p with open_basedir restrictions
WordPress Trac
noreply at wordpress.org
Thu Mar 8 13:32:45 UTC 2018
#43417: Infinite loop in wp_mkdir_p with open_basedir restrictions
----------------------------------------+--------------------
Reporter: 1265578519 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Filesystem API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+--------------------
Comment (by soulseekah):
Didn't think I'd ever encounter this, but I just saw this happen on a
migrated client site via a call to `wp_upload_dir` from Divi theme, where
the `et_images_temp_folder` option was not replaced correctly.
An incorrect/badly formed `upload_path` would also get into an infinite
loop. So this is not a theoretical scenario, this actually happens :(
Patch got rid of infinite loop in `wp_mkdir_p` call.
Any ideas on how to automate test for this? Or can this be merged without
unit tests due to it being so dangerous to test?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43417#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list