Skip to content
Snippets Groups Projects
Commit 04b5fc18 authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by David Siegfried
Browse files

#665 - add html escaping to exception messages

Merge request studip/studip!602
parent 88fc134d
No related branches found
No related tags found
No related merge requests found
...@@ -503,7 +503,7 @@ class SingleDate ...@@ -503,7 +503,7 @@ class SingleDate
sprintf( sprintf(
'<a href="%1$s">%2$s</a>', '<a href="%1$s">%2$s</a>',
$course_link, $course_link,
$course->name htmlReady($course->name)
) )
); );
} else { } else {
...@@ -521,7 +521,7 @@ class SingleDate ...@@ -521,7 +521,7 @@ class SingleDate
sprintf( sprintf(
'<a href="%1$s">%2$s</a>', '<a href="%1$s">%2$s</a>',
$course_link, $course_link,
$course->name htmlReady($course->name)
) )
); );
} }
...@@ -531,7 +531,7 @@ class SingleDate ...@@ -531,7 +531,7 @@ class SingleDate
date("d.m.Y", $booking->begin), date("d.m.Y", $booking->begin),
date("H:i", $booking->begin), date("H:i", $booking->begin),
date("H:i", $booking->end), date("H:i", $booking->end),
htmlready($booking->description) htmlReady($booking->description)
); );
} }
} }
...@@ -587,7 +587,7 @@ class SingleDate ...@@ -587,7 +587,7 @@ class SingleDate
$error_message = sprintf( $error_message = sprintf(
_('Für den Termin %1$s konnte der Raum %2$s nicht gebucht werden, da es Überschneidungen mit folgenden Terminen gibt:'), _('Für den Termin %1$s konnte der Raum %2$s nicht gebucht werden, da es Überschneidungen mit folgenden Terminen gibt:'),
$this->toString(), $this->toString(),
$room->name htmlReady($room->name)
) . '<br>'; ) . '<br>';
$overlapping_bookings = array_merge( $overlapping_bookings = array_merge(
$room->getResourceBookings($begin, $end), $room->getResourceBookings($begin, $end),
...@@ -692,7 +692,7 @@ class SingleDate ...@@ -692,7 +692,7 @@ class SingleDate
$room_text, $room_text,
date('d.m.Y H:i', $changeAssign->begin), date('d.m.Y H:i', $changeAssign->begin),
date('H:i', $changeAssign->end), date('H:i', $changeAssign->end),
$e->getMessage() htmlReady($e->getMessage())
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment