Problem with downloaded PHP file used by WordPress in ASCII mode
|Reported by:||James||Owned by:|
|Component version:||3.42.1||Operating system type:||Windows|
|Operating system version:||Windows 10 1903|
I've noticed a problem while downloading a PHP file associated with Wordpress when using ASCII mode.
When downloading a file, part of it get garbled and makes the file unreadable.
Forcing binary mode solves the problem.
I'm attaching the file downloaded in the binary mode and in ASCII mode for comparison.
I'm downloading the file from a Linux server using a Windows FileZilla Client version 3.42.1.
You need to go to the 5749 line of the file formatting_ASCII_download.txt and scroll to column 15741 to see exactly what is happening.
I'm attaching formatting_binary_download.txt which is a correctly downloaded version of the file for comparison.
The mentioned files can be found in any WordPress installation in the directory: wp-includes/formatting.php
I'm using Notepad++ to verify the downloaded file.