[wp-trac] [WordPress Trac] #33999: WordPress Update issue

WordPress Trac noreply at wordpress.org
Tue Oct 13 15:45:44 UTC 2015


#33999: WordPress Update issue
-----------------------------+------------------------------
 Reporter:  MrZen88          |       Owner:
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  4.3.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by MrZen88):

 Replying to [comment:5 boonebgorges]:
 > Replying to [comment:3 dd32]:
 > > I'd be curious how `\` would end up as the first character, given on
 windows it should be prefixed with a drive path.. so at first glance, this
 doesn't look correct at all.
 >
 > In that case, I cede the floor :-D

 The problem occur when you update via FTP on the website. When you read
 the code, it don't check a real path but a relative path. And it look like
 that we need to specify the DIRECTORY_SEPARATOR. It always a good practice
 tu use DIRECTORY_SEPARATOR when you specify a path if you want your code
 to work on Windows and linux. Because linux understand a slash ('/') and
 windows understand a backslash ('\') as directory separator. The code just
 refer to a relative path who want to be to the root of your site.

 Try it, install filezilla server on windows and make an automatique update
 from the website via FTP and you will see in the filezilla log that he can
 reach the root of the site. It work only with DIRECTORY_SEPARATOR.

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


More information about the wp-trac mailing list