Skip to content

Commit

Permalink
Merge pull request opencart#13741 from mhcwebdesign/3.0.x.x
Browse files Browse the repository at this point in the history
[3.0.x.x] Security patch
  • Loading branch information
mhcwebdesign authored Feb 28, 2024
2 parents 089cdb5 + 0865148 commit f4ae74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/tool/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function index() {

$data['error_warning'] = sprintf($this->language->get('error_warning'), basename($file), round(substr($size, 0, strpos($size, '.') + 4), 2) . $suffix[$i]);
} else {
$data['log'] = file_get_contents($file, FILE_USE_INCLUDE_PATH, null);
$data['log'] = htmlspecialchars(file_get_contents($file), ENT_COMPAT, 'UTF-8');
}
}

Expand Down

0 comments on commit f4ae74e

Please sign in to comment.