Skip to content

Commit

Permalink
Merge pull request osTicket#5152 from JediKev/issue/format-file-name
Browse files Browse the repository at this point in the history
issue: Format File Name
  • Loading branch information
protich authored Nov 8, 2019
2 parents cca97ed + bd427cd commit ed8b9cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/api.tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function validate(&$data, $format, $strict=true) {
catch (FileUploadError $ex) {
$name = $file['name'];
$file = array();
$file['error'] = $name . ': ' . $ex->getMessage();
$file['error'] = Format::htmlchars($name) . ': ' . $ex->getMessage();
}
}
unset($file);
Expand Down
2 changes: 1 addition & 1 deletion include/class.mailfetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ function createTicket($mid) {
catch (FileUploadError $ex) {
$name = $file['name'];
$file = array();
$file['error'] = $name . ': ' . $ex->getMessage();
$file['error'] = Format::htmlchars($name) . ': ' . $ex->getMessage();
}

$vars['attachments'][] = $file;
Expand Down

0 comments on commit ed8b9cd

Please sign in to comment.