[wp-trac] [WordPress Trac] #48316: Changeset 46482 breaks upload when using ".." in upload_path.

WordPress Trac noreply at wordpress.org
Thu Nov 7 06:54:25 UTC 2019


#48316: Changeset 46482 breaks upload when using ".." in upload_path.
----------------------------+------------------------------
 Reporter:  xpoon           |       Owner:  (none)
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  trunk
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by xpoon):

 I might misunderstand you, but redefining ABSPATH some level(s) up will
 not be a good solution because it will break a lot of other things. If you
 mean we should resolve paths in _wp_upload_dir() that would be
 counterproductive to the initial change in wp_mkdir_p. In that case that
 initial commit might as well be reverted.

 I still think that allowing defining absolute paths in UPLOADS would be
 the best solution if we don't want to remove the change [46482].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48316#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list