[wp-trac] [WordPress Trac] #34938: Allow filtering the temporary file name generated by wp_tempnam
WordPress Trac
noreply at wordpress.org
Wed Jun 1 02:42:56 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: reopened => closed
* resolution: => fixed
Comment:
Replying to [comment:8 kollega007]:
> Replying to [comment:7 dd32]:
>
> But what if we have
http://example.com/arg1/1/arg2/2/.../arg100/100/filename.zip ?
`basename()` returns the final component of the path.
- `filename.zip` in the case of
`http://example.com/arg1/1/arg2/2/.../arg100/100/filename.zip`
- `filename.zip` in the case of `http://example.com/filename.zip?arg=1`
- `directory` in the case of
`http://example.com/directory/?arg1=1&filename=blah.zip`
The last case is fine, as it's just a hint for the temporary file, having
a generic string there isn't a massive issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34938#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list