Skip to content

Commit 53275c1

Browse files
committed
Security: Ticket: Remove possible XSS in attachment file name
1 parent a63e03e commit 53275c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/inc/lib/TicketManager.php

+1
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,7 @@ public static function get_ticket_detail_by_id($ticketId)
12771277

12781278
$result_attach = Database::query($sql);
12791279
while ($row2 = Database::fetch_assoc($result_attach)) {
1280+
$row2['filename'] = Security::remove_XSS($row2['filename']);
12801281
$archiveURL = $webPath.'ticket/download.php?ticket_id='.$ticketId.'&id='.$row2['id'];
12811282
$row2['attachment_link'] = $attach_icon.
12821283
'&nbsp;<a href="'.$archiveURL.'">'.$row2['filename'].'</a>&nbsp;('.$row2['size'].')';

0 commit comments

Comments
 (0)