[wp-trac] [WordPress Trac] #33999: WordPress Update issue
WordPress Trac
noreply at wordpress.org
Mon Jul 25 15:27:45 UTC 2016
#33999: WordPress Update issue
-----------------------------+-----------------------------
Reporter: MrZen88 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Upgrade/Install | Version: 4.2.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Changes (by ocean90):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"38151"]:
{{{
#!CommitTicketReference repository="" revision="38151"
Filesystem API: Prevent an endless self-calling loop in `wp_tempnam()`.
Under certain conditions upgrades on Windows may fail because
`wp_tempnam()` gets called in a loop.
This can happen when `wp_tempnam()` is called with `\.maintenance` for the
`$filename` parameter. The function strips the extension, in this case
`.maintenance`, which results in an empty filename. Because it's empty,
`wp_tempnam()` calls itself with `dirname( '\.maintenance' )`. On *nix
systems this would be `"/"` which allows `wp_tempnam()` to fall back on
`time()`. But on Windows it's `"\"`.
This change adds the backslash to the list of characters which allow
`wp_tempnam()` to fall back on `time()`.
See [32322], [31936].
Fixes #33999.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33999#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list