Skip to content

Commit

Permalink
[security] Fixed issue #14377: XSS in kcfinder upload
Browse files Browse the repository at this point in the history
Dev: just need to filter when file is not uploaded
  • Loading branch information
Shnoulle authored and olleharstedt committed Jan 8, 2019
1 parent 11e5076 commit 8108c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/kcfinder/core/class/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ protected function moveUploadFile($file, $dir) {
if ($message !== true) {
if (isset($file['tmp_name']))
@unlink($file['tmp_name']);
return "{$file['name']}: $message";
return $this->htmlData($file['name']) . ": " . $message;
}

$filename = $this->normalizeFilename($file['name']);
Expand Down

0 comments on commit 8108c4a

Please sign in to comment.