Skip to content

Commit

Permalink
Merge pull request #4732 from Newman101/Issue4728
Browse files Browse the repository at this point in the history
Fixed Issue #4728
  • Loading branch information
danielkerr committed Aug 9, 2016
2 parents a2a712d + 62e154c commit a280174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/model/tool/image.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
class ModelToolImage extends Model {
public function resize($filename, $width, $height) {
if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != DIR_IMAGE) {
if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != str_replace('\\', '/', DIR_IMAGE)) {
return;
}

Expand Down

0 comments on commit a280174

Please sign in to comment.