aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2026-02-27 14:50:39 +0100
committerDavid Siegfried <david.siegfried@uni-vechta.de>2026-02-27 13:50:39 +0000
commitce679651ccf784da2e4bf57d53b57d895a4fbea3 (patch)
tree5946f87af5fcd461808285488fcfc8258afd863b /app/controllers/admin
parente752624e6621cda3e9821694d0699e2c91224746 (diff)
fix XSS issues with date formatting, fixes #6277
Closes #6277 Merge request studip/studip!4751
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/courses.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/admin/courses.php b/app/controllers/admin/courses.php
index fb65f70..38ce72b 100644
--- a/app/controllers/admin/courses.php
+++ b/app/controllers/admin/courses.php
@@ -658,8 +658,7 @@ class Admin_CoursesController extends AuthenticatedController
$d['type'] = htmlReady($semtype['name']);
}
if (in_array('room_time', $activated_fields)) {
- $strings = $course->getAllDatesInSemester($this->semester)->toStringArray();
- $d['room_time'] = implode('<br>', $strings) ?: _('nicht angegeben');
+ $d['room_time'] = $course->getAllDatesInSemester($this->semester)->toHtml();
}
if (in_array('semester', $activated_fields)) {
$d['semester'] = htmlReady($course->semester_text);
@@ -1005,9 +1004,7 @@ class Admin_CoursesController extends AuthenticatedController
}
if (in_array('room_time', $filter_config)) {
- $dates = $course->getAllDatesInSemester($this->semester);
- $date_strings = $dates->toStringArray(true);
- $row['room_time'] = implode("\n", $date_strings) ?: _('nicht angegeben');
+ $row['room_time'] = (string) $course->getAllDatesInSemester($this->semester);
}
if (in_array('requests', $filter_config)) {