@@ -1300,7 +1300,7 @@ public function quickAddTicket($params): array|bool
1300
1300
if ($ result > 0 ) {
1301
1301
$ values ['id ' ] = $ result ;
1302
1302
$ actual_link = BASE_URL .'/dashboard/home#/tickets/showTicket/ ' .$ result ;
1303
- $ message = sprintf ($ this ->language ->__ ('email_notifications.new_todo_message ' ), session ('userdata.name ' ), $ params ['headline ' ]);
1303
+ $ message = sprintf ($ this ->language ->__ ('email_notifications.new_todo_message ' ), session ('userdata.name ' ), strip_tags ( $ params ['headline ' ]) );
1304
1304
$ subject = $ this ->language ->__ ('email_notifications.new_todo_subject ' );
1305
1305
1306
1306
$ notification = app ()->make (NotificationModel::class);
@@ -1445,9 +1445,9 @@ public function addTicket($values): array|int|bool
1445
1445
1446
1446
if ($ addTicketResponse !== false ) {
1447
1447
$ values ['id ' ] = $ addTicketResponse ;
1448
- $ subject = sprintf ($ this ->language ->__ ('email_notifications.new_todo_subject ' ), $ addTicketResponse , $ values ['headline ' ]);
1448
+ $ subject = sprintf ($ this ->language ->__ ('email_notifications.new_todo_subject ' ), $ addTicketResponse , strip_tags ( $ values ['headline ' ]) );
1449
1449
$ actual_link = BASE_URL .'/dashboard/home#/tickets/showTicket/ ' .$ addTicketResponse ;
1450
- $ message = sprintf ($ this ->language ->__ ('email_notifications.new_todo_message ' ), session ('userdata.name ' ), $ values ['headline ' ]);
1450
+ $ message = sprintf ($ this ->language ->__ ('email_notifications.new_todo_message ' ), session ('userdata.name ' ), strip_tags ( $ values ['headline ' ]) );
1451
1451
1452
1452
$ notification = app ()->make (NotificationModel::class);
1453
1453
$ notification ->url = [
@@ -1545,7 +1545,7 @@ public function updateTicket($values): array|bool
1545
1545
1546
1546
// Update Ticket
1547
1547
if ($ this ->ticketRepository ->updateTicket ($ values , $ values ['id ' ]) === true ) {
1548
- $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ values ['id ' ], $ values ['headline ' ]);
1548
+ $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ values ['id ' ], strip_tags ( $ values ['headline ' ]) );
1549
1549
$ actual_link = BASE_URL .'/dashboard/home#/tickets/showTicket/ ' .$ values ['id ' ];
1550
1550
$ message = sprintf ($ this ->language ->__ ('email_notifications.todo_update_message ' ), session ('userdata.name ' ), $ values ['headline ' ]);
1551
1551
@@ -1590,9 +1590,9 @@ public function patch($id, $params): bool
1590
1590
// Todo: create events and move notification logic to notification module
1591
1591
if (isset ($ params ['status ' ]) && $ return ) {
1592
1592
$ ticket = $ this ->getTicket ($ id );
1593
- $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ id , $ ticket ->headline );
1593
+ $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ id , strip_tags ( $ ticket ->headline ) );
1594
1594
$ actual_link = BASE_URL .'/dashboard/home#/tickets/showTicket/ ' .$ id ;
1595
- $ message = sprintf ($ this ->language ->__ ('email_notifications.todo_update_message ' ), session ('userdata.name ' ), $ ticket ->headline );
1595
+ $ message = sprintf ($ this ->language ->__ ('email_notifications.todo_update_message ' ), session ('userdata.name ' ), strip_tags ( $ ticket ->headline ) );
1596
1596
1597
1597
$ notification = app ()->make (NotificationModel::class);
1598
1598
$ notification ->url = [
@@ -1797,9 +1797,9 @@ public function updateTicketStatusAndSorting($params, $handler = null): bool
1797
1797
$ ticket = $ this ->getTicket ($ id );
1798
1798
1799
1799
if ($ ticket ) {
1800
- $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ id , $ ticket ->headline );
1800
+ $ subject = sprintf ($ this ->language ->__ ('email_notifications.todo_update_subject ' ), $ id , strip_tags ( $ ticket ->headline ) );
1801
1801
$ actual_link = BASE_URL .'/dashboard/home#/tickets/showTicket/ ' .$ id ;
1802
- $ message = sprintf ($ this ->language ->__ ('email_notifications.todo_update_message ' ), session ('userdata.name ' ), $ ticket ->headline );
1802
+ $ message = sprintf ($ this ->language ->__ ('email_notifications.todo_update_message ' ), session ('userdata.name ' ), strip_tags ( $ ticket ->headline ) );
1803
1803
1804
1804
$ notification = app ()->make (NotificationModel::class);
1805
1805
$ notification ->url = [
0 commit comments