[wp-trac] [WordPress Trac] #34938: Allow filtering the temporary file name generated by wp_tempnam
WordPress Trac
noreply at wordpress.org
Tue May 31 02:21:01 UTC 2016
#34938: Allow filtering the temporary file name generated by wp_tempnam
-------------------------+---------------------
Reporter: mihaimihai | Owner: dd32
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.6
Component: HTTP API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: | Focuses:
-------------------------+---------------------
Changes (by dd32):
* status: accepted => closed
* resolution: => fixed
Comment:
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:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list