[wp-trac] [WordPress Trac] #56189: Updater tries to access File(/.svn) and /.git /.gh /.bzr

WordPress Trac noreply at wordpress.org
Sun Jul 10 16:22:45 UTC 2022


#56189: Updater tries to access File(/.svn) and /.git /.gh /.bzr
---------------------------------------+----------------------
 Reporter:  Robin Labadie              |       Owner:  (none)
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:
Component:  Upgrade/Install            |     Version:  6.0
 Severity:  minor                      |  Resolution:  invalid
 Keywords:  needs-patch needs-testing  |     Focuses:
---------------------------------------+----------------------
Changes (by pbiron):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 @robin-labadie welcome to trac!

 > I'm unsure why WordPress would want to access these directories.

 The reason the automatic updater is checking those dirs is to try to
 detect whether a site is under version control.  If the site **is** under
 version control, then the automatic updater will not update it (under the
 assumption that the site owner will update it thru their version control
 system as needed).

 ''open_basedir'' is a directive in the `php.ini` file, see the
 [https://www.php.net/manual/en/ini.core.php#ini.open-basedir PHP manual]
 for more info about it.

 If that is a directive that you have not specifically set/changed
 yourself, then it is probably best to contact you hosting company for
 advice on how to correct this problem.  Feel free to mention this ticket
 when you contact your hosting company.

 Since this is not a problem with WP core, I'm closing this ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56189#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list