[wp-trac] [WordPress Trac] #34938: Allow filtering the temporary file name generated by wp_tempnam
WordPress Trac
noreply at wordpress.org
Tue May 31 08:01:19 UTC 2016
#34938: Allow filtering the temporary file name generated by wp_tempnam
-------------------------+-----------------------
Reporter: mihaimihai | Owner: dd32
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.6
Component: HTTP API | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------
Changes (by kollega007):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:7 dd32]:
But what if we have
http://example.com/arg1/1/arg2/2/.../arg100/100/filename.zip ?
> In [changeset:"37598"]:
> {{{
> #!CommitTicketReference repository="" revision="37598"
> Updates: Only use the filename component of URLs to form part of the
temporary filename.
> Previously we were passing the entire URL to `wp_tempnam()`
(incorrectly) which caused the query string to be used as part of the
temporary filename.
> We now only use the file component of a url such as
`https://example.com/filename.zip?arg1=1&arg2=2....&arg100=100` to prevent
a long filename.
>
> Fixes #34938
> }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34938#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list