WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32135, comment 7


Ignore:
Timestamp:
04/28/2015 12:54:05 PM (6 years ago)
Author:
taka2
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32135, comment 7

    initial v1  
    11This problem is very serious because it affects also Wordpress self updating, not only plugin/thema updating.
    22
    3 Wordpress's "wp_tempnam" function is not supposed that argument $filename is root directory and has no basename.
     3Wordpress's "wp_tempnam" function is not supposed that argument $filename is root directory and has no basename (such as "/.maintenance").
    44If $filename has no basename(extensions only), wp_tempname is called recursively to generate tempname based on the parent directory of $filename,
    55but parent of root directory("/") is also root("/"), so it causes infinite recursive calling.
    66
    7 Therefore, this problem occurs when the following conditions.
     7Wordpress updater creates ".maintenance" file to the installed directory,
     8therefore this problem occurs when the following conditions.
    89. Updating via FTP (ftpsock or ftpext).
    910. Wordpress is installed at the root directory of FTP server (using chrooted account).