We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If filename from uploads directory contains Unicode characters, infinite loop will occur. This happens on Windows, not sure for Linux.
To fix this, two things needs to be changed in class-404-template.php file.
class-404-template.php
In function get_local_path() replace line $this->local_path = $requested_path; with $this->local_path = urldecode($requested_path);
get_local_path()
$this->local_path = $requested_path;
$this->local_path = urldecode($requested_path);
Then, in function download() add snippet
download()
if(strcasecmp(substr(PHP_OS, 0, 3), 'WIN') == 0){ $abspath = iconv('UTF-8', 'WINDOWS-1252', $abspath); }
before line $saved_image = $wp_filesystem->put_contents.....
$saved_image = $wp_filesystem->put_contents.....
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If filename from uploads directory contains Unicode characters, infinite loop will occur.
This happens on Windows, not sure for Linux.
To fix this, two things needs to be changed in
class-404-template.php
file.In function
get_local_path()
replace line$this->local_path = $requested_path;
with
$this->local_path = urldecode($requested_path);
Then, in function
download()
add snippetbefore line
$saved_image = $wp_filesystem->put_contents.....
The text was updated successfully, but these errors were encountered: