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

WordPress Trac noreply at wordpress.org
Mon Nov 4 11:00:52 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):

 The ways you currently can use a upload path outside the current document
 root is by:
 * defining an absolute path in "upload_path",
 * using a filter as described above.

 To use absolute paths in the database is not a great solution, neither is
 the second one as descibed by @DreadLox.

 I suggest we'll make it possible to define absolute paths in the UPLOADS
 constant, that way we will have a solid solution for those who want to use
 an upload path outside ABSPATH.

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


More information about the wp-trac mailing list