Skip to content
New issue

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

Fixed tool DIR IMAGE #4728

Closed
pekka2 opened this issue Aug 3, 2016 · 0 comments
Closed

Fixed tool DIR IMAGE #4728

pekka2 opened this issue Aug 3, 2016 · 0 comments

Comments

@pekka2
Copy link

pekka2 commented Aug 3, 2016

catalog/model/tool/image.php line 6:

if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != DIR_IMAGE) {

change to:

if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != str_replace('\\', '/', DIR_IMAGE)) {

same fix to file admin/model/tool/image.php in line 4.

danielkerr added a commit that referenced this issue Aug 9, 2016
@pekka2 pekka2 closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant