From d07281006d833f2d0e4e40623ce8835863ea9fe8 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Mon, 21 Nov 2022 09:28:21 +0000 Subject: [PATCH] the Icon and Button APIs already escape attributes, fixes #1797 Closes #1797 Merge request studip/studip!1179 --- app/controllers/course/ilias_interface.php | 2 +- app/views/admin/course_wizard_steps/index.php | 2 +- app/views/admin/ilias_interface/index.php | 4 ++-- app/views/admin/lti/index.php | 2 +- app/views/admin/specification/index.php | 2 +- app/views/admin/user/show_user_courses.php | 4 ++-- app/views/contact/index.php | 4 ++-- app/views/course/forum/area/add.php | 2 +- app/views/course/forum/index/_threads.php | 4 ++-- app/views/course/ilias_interface/add_object.php | 2 +- app/views/course/ilias_interface/index.php | 2 +- app/views/course/ilias_interface/view_object.php | 2 +- app/views/course/lti/index.php | 2 +- app/views/course/members/accepted_list.php | 4 ++-- app/views/course/members/add_dozent.php | 2 +- app/views/course/members/add_member.php | 2 +- app/views/course/members/add_tutor.php | 2 +- app/views/course/members/autor_list.php | 4 ++-- app/views/course/members/awaiting_list.php | 6 +++--- app/views/course/members/dozent_list.php | 4 ++-- app/views/course/members/import_autorlist.php | 2 +- app/views/course/members/tutor_list.php | 4 ++-- app/views/course/members/user_list.php | 4 ++-- app/views/course/statusgroups/_group.php | 10 +++++----- app/views/course/statusgroups/_member.php | 4 ++-- app/views/course/timesrooms/_cycleRow.php | 15 --------------- app/views/fachabschluss/abschluesse/index.php | 2 +- app/views/fachabschluss/faecher/index.php | 2 +- app/views/fachabschluss/kategorien/index.php | 2 +- app/views/lvgruppen/lvgruppen/index.php | 2 +- app/views/module/module/details.php | 2 +- app/views/module/module/modul.php | 2 +- app/views/module/module/module.php | 6 +++--- app/views/module/module/modulteil.php | 2 +- app/views/module/module/modulteil_lvg.php | 4 ++-- app/views/my_courses/_deputy_bosses.php | 4 ++-- app/views/my_ilias_accounts/index.php | 4 ++-- app/views/resources/admin/properties.php | 5 ++--- app/views/search/archive/index.php | 2 +- app/views/start/_widget.php | 2 +- app/views/studiengaenge/informationen/degree.php | 4 ++-- app/views/studiengaenge/informationen/index.php | 2 +- .../studiengaenge/informationen/showdegree.php | 4 ++-- .../informationen/showstudycourse.php | 4 ++-- .../studiengaenge/stgteilbezeichnungen/index.php | 2 +- .../studiengaenge/aufbaustg_table.php | 2 +- .../studiengaenge/studiengaenge/studiengaenge.php | 2 +- .../studiengaenge/studiengangteile.php | 4 ++-- .../studiengangteile/details_grouped.php | 4 ++-- .../studiengaenge/studiengangteile/index.php | 2 +- app/views/studiengaenge/versionen/abschnitte.php | 2 +- .../studiengaenge/versionen/details_abschnitt.php | 4 ++-- app/views/studiengaenge/versionen/versionen.php | 6 +++--- templates/calendar/entries/icons.php | 4 ++-- templates/mail/notification_html.php | 2 +- templates/sidebar/clipboard-area.php | 2 +- templates/tabs.php | 6 +++--- 57 files changed, 89 insertions(+), 105 deletions(-) diff --git a/app/controllers/course/ilias_interface.php b/app/controllers/course/ilias_interface.php index a07e24ad637..c369e57aea4 100644 --- a/app/controllers/course/ilias_interface.php +++ b/app/controllers/course/ilias_interface.php @@ -156,7 +156,7 @@ class Course_IliasInterfaceController extends AuthenticatedController [ 'data-confirm' => sprintf( _('Verknüpfung zum Kurs in %s entfernen? Hierdurch werden auch die Verknüpfungen zu allen Objekten innerhalb des Kurses entfernt.'), - htmlReady($this->ilias_list[$ilias_index]->getName()) + $this->ilias_list[$ilias_index]->getName() ) ] ); diff --git a/app/views/admin/course_wizard_steps/index.php b/app/views/admin/course_wizard_steps/index.php index 19314f0418e..5e7b869d0b2 100644 --- a/app/views/admin/course_wizard_steps/index.php +++ b/app/views/admin/course_wizard_steps/index.php @@ -65,7 +65,7 @@ 'formaction' => $controller->url_for("admin/coursewizardsteps/delete/{$step->id}"), 'data-confirm' => sprintf( _('Soll der Eintrag "%s" wirklich gelöscht werden?'), - htmlReady($step->name) + $step->name ), ]) ) ?> diff --git a/app/views/admin/ilias_interface/index.php b/app/views/admin/ilias_interface/index.php index b4789a8d82d..d786a97c3e1 100644 --- a/app/views/admin/ilias_interface/index.php +++ b/app/views/admin/ilias_interface/index.php @@ -78,8 +78,8 @@ 'title' => _('Konfiguration löschen'), 'formaction' => $controller->url_for("admin/ilias_interface/delete/$ilias_index"), 'data-confirm' => sprintf( - sprintf(_('Soll die ILIAS-Installation "%s" wirklich entfernt werden?'), - htmlReady($ilias_config['name'])) + _('Soll die ILIAS-Installation "%s" wirklich entfernt werden?'), + $ilias_config['name'] ), ]) ) ?> diff --git a/app/views/admin/lti/index.php b/app/views/admin/lti/index.php index e40380cac0b..ad4ac50bf44 100644 --- a/app/views/admin/lti/index.php +++ b/app/views/admin/lti/index.php @@ -57,7 +57,7 @@ <?= Icon::create('trash')->asInput([ 'formaction' => $controller->url_for('admin/lti/delete/' . $tool->id), 'title' => _('LTI-Tool löschen'), - 'data-confirm' => sprintf(_('Wollen Sie wirklich das LTI-Tool "%s" löschen?'), htmlReady($tool->name)) + 'data-confirm' => sprintf(_('Wollen Sie wirklich das LTI-Tool "%s" löschen?'), $tool->name) ]) ?> </td> </tr> diff --git a/app/views/admin/specification/index.php b/app/views/admin/specification/index.php index 38ec459e8c5..b2b42ea5886 100644 --- a/app/views/admin/specification/index.php +++ b/app/views/admin/specification/index.php @@ -38,7 +38,7 @@ </a> <?=Icon::create('trash', 'clickable', tooltip2(_('Regel löschen')))->asInput([ 'formaction' => $controller->url_for('admin/specification/delete/' . $rule['lock_id']), - 'data-confirm' => sprintf(_('Wollen Sie die Regel "%s" wirklich löschen?'), htmlReady($rule['name'])), + 'data-confirm' => sprintf(_('Wollen Sie die Regel "%s" wirklich löschen?'), $rule['name']), 'style' => 'vertical-align: bottom' ])?> </td> diff --git a/app/views/admin/user/show_user_courses.php b/app/views/admin/user/show_user_courses.php index 7136d9da81a..c8fbb1b17b8 100644 --- a/app/views/admin/user/show_user_courses.php +++ b/app/views/admin/user/show_user_courses.php @@ -39,7 +39,7 @@ 'formaction' => $controller->delete_course_assignment($user, ['course_id' => $course->id]), 'data-confirm' => sprintf( _('Wollen Sie %s wirklich austragen?'), - htmlReady($user->getFullName()) + $user->getFullName() ), 'data-dialog' => 'size=auto' ]) ?> @@ -57,7 +57,7 @@ [ 'data-confirm' => sprintf( _('Wollen Sie %s wirklich austragen?'), - htmlReady($user->getFullName()) + $user->getFullName() ) ] ) ?> diff --git a/app/views/contact/index.php b/app/views/contact/index.php index 6ecef64ac25..a988191836f 100644 --- a/app/views/contact/index.php +++ b/app/views/contact/index.php @@ -14,7 +14,7 @@ <?= Icon::create('trash')->asInput( ['formaction' => $controller->url_for('contact/deleteGroup/' . $filter), 'title' => _('Gruppe löschen'), - 'data-confirm' => sprintf(_('Gruppe %s wirklich löschen?'), htmlReady($title))]) ?> + 'data-confirm' => sprintf(_('Gruppe %s wirklich löschen?'), $title)]) ?> <? endif; ?> </span> </caption> @@ -86,7 +86,7 @@ [ 'data-confirm' => sprintf( _('Wollen Sie %s wirklich von der Liste entfernen'), - htmlReady($contact->username) + $contact->username ), 'formaction' => $controller->url_for('contact/remove/' . $filter, ['user' => $contact->username]) ]) diff --git a/app/views/course/forum/area/add.php b/app/views/course/forum/area/add.php index a3fdf2d6c91..310bc9b7261 100644 --- a/app/views/course/forum/area/add.php +++ b/app/views/course/forum/area/add.php @@ -13,7 +13,7 @@ <? else : ?> <? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?> <?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([ - 'title' => htmlReady(ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth'])), + 'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']), 'style' => 'margin-bottom: 15px;', ]) ?> <? endif ?> diff --git a/app/views/course/forum/index/_threads.php b/app/views/course/forum/index/_threads.php index f09cee277ce..5a93c8d466b 100644 --- a/app/views/course/forum/index/_threads.php +++ b/app/views/course/forum/index/_threads.php @@ -46,7 +46,7 @@ <? else : ?> <? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?> <?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([ - 'title' => htmlReady(ForumHelpers::getVisitText($num_postings, $entry['topic_id'])), + 'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id']), ]) ?> <? endif ?> @@ -163,7 +163,7 @@ 'formaction' => $controller->url_for("course/forum/index/delete_entry/{$entry['topic_id']}"), 'data-confirm' => sprintf( _('Sind sie sicher dass Sie den Eintrag %s löschen möchten?'), - htmlReady($entry['name']) + $entry['name'] ) ] ) diff --git a/app/views/course/ilias_interface/add_object.php b/app/views/course/ilias_interface/add_object.php index b2b5e022a9e..356a82dcb16 100644 --- a/app/views/course/ilias_interface/add_object.php +++ b/app/views/course/ilias_interface/add_object.php @@ -102,7 +102,7 @@ Icon::create('info-circle'), [ 'title' => _('Info'), - 'formaction' => $controller->url_for($module->getRoute('view_course') .'?ilias_search='.htmlReady($ilias_search)), + 'formaction' => $controller->url_for($module->getRoute('view_course') .'?ilias_search='.urlencode($ilias_search)), 'data-dialog' => '' ] )->condition($edit_permission)->addButton( diff --git a/app/views/course/ilias_interface/index.php b/app/views/course/ilias_interface/index.php index 8f841b34ce7..7d33f20d351 100644 --- a/app/views/course/ilias_interface/index.php +++ b/app/views/course/ilias_interface/index.php @@ -71,7 +71,7 @@ Icon::create('trash', Icon::ROLE_CLICKABLE, [ 'title' => _('Entfernen'), 'formaction' => $controller->url_for($module->getRoute('remove')), - 'data-confirm' => $module->siblings_count < 2 ? sprintf(_('Dies ist die einzige Instanz des Objekts "%s". Durch das Entfernen aus dem Kurs wird das Objekt unwiderruflich gelöscht! Wollen Sie das Objekt wirklich löschen?'), htmlReady($module->getTitle())) : sprintf(_('Wollen Sie das Objekt "%s" jetzt entfernen?'), htmlReady($module->getTitle())), + 'data-confirm' => $module->siblings_count < 2 ? sprintf(_('Dies ist die einzige Instanz des Objekts "%s". Durch das Entfernen aus dem Kurs wird das Objekt unwiderruflich gelöscht! Wollen Sie das Objekt wirklich löschen?'), $module->getTitle()) : sprintf(_('Wollen Sie das Objekt "%s" jetzt entfernen?'), $module->getTitle()), 'target' => '_blank', 'rel' => 'noopener noreferrer' ]) diff --git a/app/views/course/ilias_interface/view_object.php b/app/views/course/ilias_interface/view_object.php index 3ca5c705bd9..457e07e1e0a 100644 --- a/app/views/course/ilias_interface/view_object.php +++ b/app/views/course/ilias_interface/view_object.php @@ -11,7 +11,7 @@ <? endif ?> <? if ($ilias->isActive() && !$mode) : ?> <? if ($edit_permission && $module->isAllowed('delete')) : ?> - <?= Studip\LinkButton::create(_('Entfernen'), $controller->url_for($module->getRoute('remove') . '?ilias_search=' . $ilias_search), ['data-confirm' => $module->siblings_count < 2 ? sprintf(_('Dies ist die einzige Instanz des Objekts "%s". Durch das Entfernen aus dem Kurs wird das Objekt unwiderruflich gelöscht! Wollen Sie das Objekt wirklich löschen?'), htmlReady($module->getTitle())) : sprintf(_('Wollen Sie das Objekt "%s" jetzt entfernen?'), htmlReady($module->getTitle()))]) ?> + <?= Studip\LinkButton::create(_('Entfernen'), $controller->url_for($module->getRoute('remove') . '?ilias_search=' . $ilias_search), ['data-confirm' => $module->siblings_count < 2 ? sprintf(_('Dies ist die einzige Instanz des Objekts "%s". Durch das Entfernen aus dem Kurs wird das Objekt unwiderruflich gelöscht! Wollen Sie das Objekt wirklich löschen?'), $module->getTitle()) : sprintf(_('Wollen Sie das Objekt "%s" jetzt entfernen?'), $module->getTitle())]) ?> <? endif ?> <?= $module->isAllowed('start') ? Studip\LinkButton::create(_('Starten'), $controller->url_for($module->getRoute('start')), ['target' => '_blank', 'rel' => 'noopener noreferrer']) :'' ?> <?= $module->isAllowed('edit') ? Studip\LinkButton::create(_('Bearbeiten'), $controller->url_for($module->getRoute('edit')), ['target' => '_blank', 'rel' => 'noopener noreferrer']) :'' ?> diff --git a/app/views/course/lti/index.php b/app/views/course/lti/index.php index 3b2fb8072b6..e04e3bf3349 100644 --- a/app/views/course/lti/index.php +++ b/app/views/course/lti/index.php @@ -37,7 +37,7 @@ <?= Icon::create('trash')->asInput([ 'formaction' => $controller->url_for('course/lti/delete/' . $lti_data->position), 'title' => _('Abschnitt löschen'), - 'data-confirm' => sprintf(_('Wollen Sie wirklich den Abschnitt "%s" löschen?'), htmlReady($lti_data->title)) + 'data-confirm' => sprintf(_('Wollen Sie wirklich den Abschnitt "%s" löschen?'), $lti_data->title) ]) ?> </form> </nav> diff --git a/app/views/course/members/accepted_list.php b/app/views/course/members/accepted_list.php index c484e3c4704..7b34ef37f91 100644 --- a/app/views/course/members/accepted_list.php +++ b/app/views/course/members/accepted_list.php @@ -125,7 +125,7 @@ 'mail', Icon::ROLE_CLICKABLE, [ - 'title' => sprintf('Nachricht mit Weiterleitung an %s senden', htmlReady($fullname)) + 'title' => sprintf('Nachricht mit Weiterleitung an %s senden', $fullname) ] ), ['data-dialog' => ''] @@ -139,7 +139,7 @@ 'door-leave', Icon::ROLE_CLICKABLE, [ - 'title' => sprintf(_('%s austragen'), htmlReady($fullname)) + 'title' => sprintf(_('%s austragen'), $fullname) ] ) ) ?> diff --git a/app/views/course/members/add_dozent.php b/app/views/course/members/add_dozent.php index a4a508f5ef8..4e90ab11d88 100644 --- a/app/views/course/members/add_dozent.php +++ b/app/views/course/members/add_dozent.php @@ -27,7 +27,7 @@ <?= Studip\Button::createAccept( _('Eintragen'), 'add_dozent', - ['title' => sprintf(_("als %s eintragen"), htmlReady($decoratedStatusGroups['dozent']))] + ['title' => sprintf(_("als %s eintragen"), $decoratedStatusGroups['dozent'])] ) ?> <?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index')) ?> </td> diff --git a/app/views/course/members/add_member.php b/app/views/course/members/add_member.php index 8d597e4ee4f..2e258b4a8ad 100644 --- a/app/views/course/members/add_member.php +++ b/app/views/course/members/add_member.php @@ -85,7 +85,7 @@ _('Eintragen'), 'add_member_list', [ - 'title' => sprintf(_("als %s eintragen"), htmlReady($decoratedStatusGroups['autor'])) + 'title' => sprintf(_("als %s eintragen"), $decoratedStatusGroups['autor']) ] ) ?> </td> diff --git a/app/views/course/members/add_tutor.php b/app/views/course/members/add_tutor.php index 95e9abc2f74..36cda6f4aab 100644 --- a/app/views/course/members/add_tutor.php +++ b/app/views/course/members/add_tutor.php @@ -24,7 +24,7 @@ <?= Studip\Button::createAccept( _('Eintragen'), 'add_tutor', - ['title' => sprintf(_('als %s eintragen'), htmlReady($decoratedStatusGroups['tutor']))] + ['title' => sprintf(_('als %s eintragen'), $decoratedStatusGroups['tutor'])] ) ?> <?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index')) ?> </td> diff --git a/app/views/course/members/autor_list.php b/app/views/course/members/autor_list.php index 180d090719b..0464d4700af 100644 --- a/app/views/course/members/autor_list.php +++ b/app/views/course/members/autor_list.php @@ -143,7 +143,7 @@ Icon::create( 'mail', Icon::ROLE_CLICKABLE, [ - 'title' => sprintf(_('Nachricht mit Weiterleitung an %s senden'), htmlReady($fullname)), + 'title' => sprintf(_('Nachricht mit Weiterleitung an %s senden'), $fullname), ]), ['data-dialog' => ''] ) ?> @@ -162,7 +162,7 @@ Icon::create( 'door-leave', Icon::ROLE_CLICKABLE, - ['title' => sprintf(_('%s austragen'), htmlReady($fullname))]) + ['title' => sprintf(_('%s austragen'), $fullname)]) ) ?> <? endif ?> <?= $actionMenu->render() ?> diff --git a/app/views/course/members/awaiting_list.php b/app/views/course/members/awaiting_list.php index 061ddaf164c..b8c1e08c605 100644 --- a/app/views/course/members/awaiting_list.php +++ b/app/views/course/members/awaiting_list.php @@ -82,7 +82,7 @@ <a href="<?= $controller->url_for('profile?username=' . $waiting['username']) ?>" <? if ($waiting['mkdate'] >= $last_visitdate) echo 'class="new-member"'; ?>> <?= Avatar::getAvatar($waiting['user_id'], $waiting['username'])->getImageTag(Avatar::SMALL, [ 'style' => 'margin-right: 5px', - 'title' => htmlReady($fullname), + 'title' => $fullname, ]) ?> <?= htmlReady($fullname) ?> </a> @@ -112,7 +112,7 @@ [ 'title' => sprintf( _('Nachricht mit Weiterleitung an %s senden'), - htmlReady($fullname) + $fullname ) ] ), @@ -126,7 +126,7 @@ Icon::create( 'door-leave', 'clickable', - ['title' => sprintf(_('%s austragen'), htmlReady($fullname))] + ['title' => sprintf(_('%s austragen'), $fullname)] ) ) ?> <? endif ?> diff --git a/app/views/course/members/dozent_list.php b/app/views/course/members/dozent_list.php index ab5ae0a0ac9..9b11d075a7b 100644 --- a/app/views/course/members/dozent_list.php +++ b/app/views/course/members/dozent_list.php @@ -81,7 +81,7 @@ Icon::create( 'mail', Icon::ROLE_CLICKABLE, - ['title' => sprintf('Nachricht mit Weiterleitung an %s senden', htmlReady($fullname))] + ['title' => sprintf('Nachricht mit Weiterleitung an %s senden', $fullname)] ), ['data-dialog' => '1'] ) ?> @@ -100,7 +100,7 @@ Icon::create( 'door-leave', Icon::ROLE_CLICKABLE, - ['title' => sprintf(_('%s austragen'), htmlReady($fullname))] + ['title' => sprintf(_('%s austragen'), $fullname)] ) ) ?> <? endif ?> diff --git a/app/views/course/members/import_autorlist.php b/app/views/course/members/import_autorlist.php index 48a73eb1ecb..450270cb260 100644 --- a/app/views/course/members/import_autorlist.php +++ b/app/views/course/members/import_autorlist.php @@ -40,7 +40,7 @@ <footer data-dialog-button> <?= Button::createAccept(_('Eintragen'), 'add_member_list', - ['title' => sprintf(_("als %s eintragen"), htmlReady(get_title_for_status('autor', 1)))]) ?> + ['title' => sprintf(_("als %s eintragen"), get_title_for_status('autor', 1))]) ?> <?= LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index')) ?> </footer> </form> diff --git a/app/views/course/members/tutor_list.php b/app/views/course/members/tutor_list.php index cb0405cbdcd..6af208c698f 100644 --- a/app/views/course/members/tutor_list.php +++ b/app/views/course/members/tutor_list.php @@ -131,7 +131,7 @@ Icon::create( 'mail', Icon::ROLE_CLICKABLE, - ['title' => sprintf(_('Nachricht mit Weiterleitung an %s senden'), htmlReady($fullname))] + ['title' => sprintf(_('Nachricht mit Weiterleitung an %s senden'), $fullname)] ), ['data-dialog' => ''] ) ?> @@ -150,7 +150,7 @@ Icon::create( 'door-leave', 'clickable', - ['title' => sprintf(_('%s austragen'), htmlReady($fullname))] + ['title' => sprintf(_('%s austragen'), $fullname)] ) ) ?> <? endif ?> diff --git a/app/views/course/members/user_list.php b/app/views/course/members/user_list.php index fafef93f673..9b2aceabc28 100644 --- a/app/views/course/members/user_list.php +++ b/app/views/course/members/user_list.php @@ -119,7 +119,7 @@ [ 'title' => sprintf( _('Nachricht mit Weiterleitung an %s senden'), - htmlReady($fullname) + $fullname ) ] ), @@ -141,7 +141,7 @@ Icon::create( 'door-leave', Icon::ROLE_CLICKABLE, - ['title' => sprintf(_('%s austragen'), htmlReady($fullname))] + ['title' => sprintf(_('%s austragen'), $fullname)] ) ) ?> <? endif ?> diff --git a/app/views/course/statusgroups/_group.php b/app/views/course/statusgroups/_group.php index aa0ebb2b111..d84b456fe91 100644 --- a/app/views/course/statusgroups/_group.php +++ b/app/views/course/statusgroups/_group.php @@ -29,7 +29,7 @@ <?php if ($is_autor && !$is_tutor && $group->id != 'nogroup' && $group->isMember($GLOBALS['user']->id)) : ?> <a href="<?= $controller->link_for('messages/write', [ 'group_id' => $group->id, - 'default_subject' => htmlReady($course_title . ' (' . $group->name . ')'), + 'default_subject' => $course_title . ' (' . $group->name . ')', ]) ?>" data-dialog="size=auto"> <?= Icon::create('mail', Icon::ROLE_CLICKABLE, ['title' => sprintf( _('Nachricht an alle Mitglieder der Gruppe %s schicken'), @@ -44,7 +44,7 @@ <a href="<?= $controller->url_for('course/statusgroups/join', $group->id) ?>"> <?= Icon::create('door-enter', Icon::ROLE_CLICKABLE, ['title' => sprintf(_('Mitglied von Gruppe %s werden'), - htmlReady($group->name))]) ?></a> + $group->name)]) ?></a> <?php elseif ($group->id != 'nogroup' && $group->selfassign && $group->selfassign_start > time()) : ?> <?= Icon::create('door-enter', Icon::ROLE_INACTIVE, @@ -59,7 +59,7 @@ <a href="<?= $controller->url_for('course/statusgroups/leave', $group->id) ?>" data-confirm="<?= sprintf(_('Aus Gruppe %s austragen'),htmlReady($group->name)) . '?' ?>"> <?= Icon::create('door-leave', Icon::ROLE_ATTENTION, ['title' => sprintf(_('Aus Gruppe %s austragen'), - htmlReady($group->name))]) ?></a> + $group->name)]) ?></a> <?php endif ?> </nav> <?php endif ?> @@ -69,7 +69,7 @@ ->addLink( $controller->url_for('messages/write', [ 'group_id' => $group->id, - 'default_subject' => htmlReady($course_title . ' (' . $group->name . ')'), + 'default_subject' => $course_title . ' (' . $group->name . ')', ]), _('Nachricht schicken'), Icon::create('mail', Icon::ROLE_CLICKABLE, [ @@ -135,7 +135,7 @@ <a href="<?= $controller->url_for('messages/write', [ 'filter' => 'not_grouped', 'course_id' => $course_id, - 'default_subject' => htmlReady($course_title).' ('.htmlReady($group->name).')' + 'default_subject' => $course_title.' ('.$group->name.')' ]) ?>" data-dialog="size=auto;"> <?= Icon::create('mail')->asImg(['title' => _('Nachricht an alle nicht zugeordneten Personen schicken')]) ?> </a> diff --git a/app/views/course/statusgroups/_member.php b/app/views/course/statusgroups/_member.php index 7c39a77a14a..cbe78dd3f71 100644 --- a/app/views/course/statusgroups/_member.php +++ b/app/views/course/statusgroups/_member.php @@ -74,8 +74,8 @@ ]), ['data-confirm' => sprintf( _('Soll %s wirklich aus der Gruppe %s entfernt werden?'), - htmlReady($user_fullname), - htmlReady($group->name) + $user_fullname, + $group->name )] ); } diff --git a/app/views/course/timesrooms/_cycleRow.php b/app/views/course/timesrooms/_cycleRow.php index 8f05d78d719..d5a26b325d1 100644 --- a/app/views/course/timesrooms/_cycleRow.php +++ b/app/views/course/timesrooms/_cycleRow.php @@ -127,21 +127,6 @@ $is_exTermin = $termin instanceof CourseExDate; ['data-dialog' => ''] ) ?> - <? $params = [ - 'type' => 'image', - 'class' => 'middle', - 'name' => 'delete_single_date', - 'data-confirm' => _('Wollen Sie diesen Termin wirklich löschen / ausfallen lassen?') - . '<br>' . implode('<br>', array_map('htmlReady', $termin->getDeletionWarnings())), - 'formaction' => $controller->url_for( - 'course/timesrooms/deleteSingle/' . $termin->id, - ['cycle_id' => $termin->metadate_id] + $linkAttributes - ), - ] ?> - <? if (Request::isXhr()) : ?> - <? $params['data-dialog'] = 'size=big' ?> - <? endif ?> - <? $actionMenu->addLink( $controller->url_for( 'course/timesrooms/stack', diff --git a/app/views/fachabschluss/abschluesse/index.php b/app/views/fachabschluss/abschluesse/index.php index 99422ab64d5..6750a76c015 100644 --- a/app/views/fachabschluss/abschluesse/index.php +++ b/app/views/fachabschluss/abschluesse/index.php @@ -38,7 +38,7 @@ 'formaction' => $controller->action_url('delete/' . $abschluss->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich den Abschluss "%s" löschen?'), - htmlReady($abschluss->name) + $abschluss->name ), 'name' => 'delete' ]); ?> diff --git a/app/views/fachabschluss/faecher/index.php b/app/views/fachabschluss/faecher/index.php index 80cdfe3de4a..352dcb7c34d 100644 --- a/app/views/fachabschluss/faecher/index.php +++ b/app/views/fachabschluss/faecher/index.php @@ -35,7 +35,7 @@ <?= Icon::create('trash', Icon::ROLE_CLICKABLE, tooltip2(_('Fach löschen')))->asInput( [ 'formaction' => $controller->action_url('delete/' . $fach->id), - 'data-confirm' => sprintf(_('Wollen Sie wirklich das Fach "%s" löschen?'), htmlReady($fach->name)), + 'data-confirm' => sprintf(_('Wollen Sie wirklich das Fach "%s" löschen?'), $fach->name), 'name' => 'delete' ]); ?> <? else : ?> diff --git a/app/views/fachabschluss/kategorien/index.php b/app/views/fachabschluss/kategorien/index.php index 7cfa6a530e3..44c9bad4fff 100644 --- a/app/views/fachabschluss/kategorien/index.php +++ b/app/views/fachabschluss/kategorien/index.php @@ -48,7 +48,7 @@ <?= Icon::create('trash', Icon::ROLE_CLICKABLE, tooltip2(_('Abschluss-Kategorie löschen')))->asInput( [ 'formaction' => $controller->action_url('delete', $kategorie->id), - 'data-confirm' => sprintf(_('Wollen Sie wirklich die Abschluss-Kategorie "%s" löschen?'), htmlReady($kategorie->name)), + 'data-confirm' => sprintf(_('Wollen Sie wirklich die Abschluss-Kategorie "%s" löschen?'), $kategorie->name), 'name' => 'delete' ]); ?> <? else : ?> diff --git a/app/views/lvgruppen/lvgruppen/index.php b/app/views/lvgruppen/lvgruppen/index.php index 984cac82736..d5ab6a8dfa9 100644 --- a/app/views/lvgruppen/lvgruppen/index.php +++ b/app/views/lvgruppen/lvgruppen/index.php @@ -53,7 +53,7 @@ 'formaction' => $controller->action_url('delete', $lvgruppe->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich die Lehrveranstaltungsgruppe "%s" löschen?'), - htmlReady($lvgruppe->getDisplayName()) + $lvgruppe->getDisplayName() ) ] ) ?> diff --git a/app/views/module/module/details.php b/app/views/module/module/details.php index fed9e534eb8..694d8affd92 100644 --- a/app/views/module/module/details.php +++ b/app/views/module/module/details.php @@ -67,7 +67,7 @@ 'formaction' => $controller->action_url('delete_modulteil/' . $modulteil->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich den Modulteil "%s" löschen?'), - htmlReady($modulteil->getDisplayName()) + $modulteil->getDisplayName() ) ] ) ?> diff --git a/app/views/module/module/modul.php b/app/views/module/module/modul.php index 2fa0cdd9961..a6d534fec4e 100644 --- a/app/views/module/module/modul.php +++ b/app/views/module/module/modul.php @@ -685,7 +685,7 @@ if ($GLOBALS['MVV_MODUL']['SPRACHE']['default'] != $display_language) { <?= Button::createAccept(_('Übernehmen'), 'store', ['title' => _('Änderungen übernehmen')]) ?> <? endif; ?> <? if (!$def_lang && !$deskriptor->isNew() && in_array($display_language, $translations)) : ?> - <?= Button::create(_('Löschen'), 'delete', ['title' => _('Deskriptor löschen'), 'data-confirm' => sprintf(_('Soll der Deskriptor in der Ausgabesprache %s gelöscht werden?'), htmlReady($GLOBALS['MVV_LANGUAGES']['values'][$display_language]['name'])), + <?= Button::create(_('Löschen'), 'delete', ['title' => _('Deskriptor löschen'), 'data-confirm' => sprintf(_('Soll der Deskriptor in der Ausgabesprache %s gelöscht werden?'), $GLOBALS['MVV_LANGUAGES']['values'][$display_language]['name']), 'formaction' => $controller->action_url('delete_modul_deskriptor', $deskriptor->id, $display_language)]); ?> <? endif; ?> <? endif; ?> diff --git a/app/views/module/module/module.php b/app/views/module/module/module.php index 7700a3f5895..09cd3f3de2c 100644 --- a/app/views/module/module/module.php +++ b/app/views/module/module/module.php @@ -72,7 +72,7 @@ Icon::create('log', Icon::ROLE_CLICKABLE,['title' => _('Modulbeschreibung ansehen')]), [ 'data-dialog' => 'size=auto', - 'title' => htmlReady($modul->getDisplayName()) + 'title' => $modul->getDisplayName() ] ) ?> <? endif; ?> @@ -106,8 +106,8 @@ [ 'formaction' => $controller->action_url('delete/' . $modul->id), 'data-confirm' => sprintf( - _('Wollen Sie wirklich das Modul "%s" löschen?'), - htmlReady($modul->getDisplayName()) + _('Wollen Sie wirklich das Modul "%s" löschen?'), + $modul->getDisplayName() ) ] ) ?> diff --git a/app/views/module/module/modulteil.php b/app/views/module/module/modulteil.php index cf6452d19d1..d7e75f4a77c 100644 --- a/app/views/module/module/modulteil.php +++ b/app/views/module/module/modulteil.php @@ -467,7 +467,7 @@ if ($GLOBALS['MVV_MODULTEIL']['SPRACHE']['default'] != $display_language) { <?= Button::create( _('Löschen'), 'delete', - ['title' => _('Deskriptor löschen'), 'data-confirm' => sprintf(_('Soll der Deskriptor in der Ausgabesprache %s gelöscht werden?'), htmlReady($GLOBALS['MVV_LANGUAGES']['values'][$display_language]['name'])), + ['title' => _('Deskriptor löschen'), 'data-confirm' => sprintf(_('Soll der Deskriptor in der Ausgabesprache %s gelöscht werden?'), $GLOBALS['MVV_LANGUAGES']['values'][$display_language]['name']), 'formaction' => $controller->action_url('delete_modulteil_deskriptor', $deskriptor->id, $display_language) ] ); ?>s diff --git a/app/views/module/module/modulteil_lvg.php b/app/views/module/module/modulteil_lvg.php index 3bb50140ae1..945fcff1c8c 100644 --- a/app/views/module/module/modulteil_lvg.php +++ b/app/views/module/module/modulteil_lvg.php @@ -33,8 +33,8 @@ 'formaction' => $controller->action_url('delete_lvgruppe/' . $modulteil->id . '/' . $lvgruppe->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich die Lehrveranstaltungsgruppe "%s" vom Modulteil "%s" entfernen?'), - htmlReady($lvgruppe->getDisplayName()), - htmlReady($modulteil->getDisplayName()) + $lvgruppe->getDisplayName(), + $modulteil->getDisplayName() ) ] ) ?> diff --git a/app/views/my_courses/_deputy_bosses.php b/app/views/my_courses/_deputy_bosses.php index eca6c470e8a..14b88653936 100644 --- a/app/views/my_courses/_deputy_bosses.php +++ b/app/views/my_courses/_deputy_bosses.php @@ -32,12 +32,12 @@ <a href="<?= URLHelper::getLink( 'dispatch.php/messages/write', ['filter' => 'send_sms_to_all', 'rec_uname' => $boss->boss_username])?>" data-dialog> - <?= Icon::create('mail')->asImg(['title' => sprintf(_('Nachricht an %s senden'), htmlReady($boss_fullname))]) ?> + <?= Icon::create('mail')->asImg(['title' => sprintf(_('Nachricht an %s senden'), $boss_fullname)]) ?> </a> <a href="<?= $controller->link_for('my_courses/delete_boss/' . $boss->range_id) ?>" data-confirm="<?= sprintf(_('Wollen Sie sich wirklich als Standardvertretung von %s austragen?'), htmlReady($boss_fullname)) ?>"> <?= Icon::create('trash')->asImg([ - 'title' => sprintf(_('Mich als Standardvertretung von %s austragen'), htmlReady($boss_fullname)) + 'title' => sprintf(_('Mich als Standardvertretung von %s austragen'), $boss_fullname) ]) ?> </a> </td> diff --git a/app/views/my_ilias_accounts/index.php b/app/views/my_ilias_accounts/index.php index f263baac5b8..d4042bbef4e 100644 --- a/app/views/my_ilias_accounts/index.php +++ b/app/views/my_ilias_accounts/index.php @@ -116,7 +116,7 @@ 'formaction' => $controller->url_for('my_ilias_accounts/new_account/'.$ilias_index), 'data-confirm' => sprintf(_('Möchten Sie wirklich die bestehende Zuordnung aufheben? Sie verlieren dadurch alle mit dem bestehenden Account verbundenen Inhalte und Lernfortschritte im System "%s".'), - htmlReady($ilias->getName()) + $ilias->getName() ), 'data-dialog' => 'size=auto;reload-on-close' ]) @@ -129,7 +129,7 @@ 'formaction' => $controller->url_for('my_ilias_accounts/change_account/'.$ilias_index.'/remove'), 'data-confirm' => sprintf(_('Möchten Sie wirklich die bestehende Zuordnung aufheben? Sie verlieren dadurch alle mit dem bestehenden Account verbundenen Inhalte und Lernfortschritte im System "%s".'), - htmlReady($ilias->getName()) + $ilias->getName() ) ]) ) ?> diff --git a/app/views/resources/admin/properties.php b/app/views/resources/admin/properties.php index ac0b97ac924..072817b5e16 100644 --- a/app/views/resources/admin/properties.php +++ b/app/views/resources/admin/properties.php @@ -48,9 +48,8 @@ [ 'title' => _('Löschen'), 'data-confirm' => sprintf( - _('Soll die Eigenschaft "%s" wirklich gelöscht werden?' - ), - htmlReady($property->name) + _('Soll die Eigenschaft "%s" wirklich gelöscht werden?'), + $property->name ) ] ) ?> diff --git a/app/views/search/archive/index.php b/app/views/search/archive/index.php index 4ad5c458d01..dfca45fdb76 100644 --- a/app/views/search/archive/index.php +++ b/app/views/search/archive/index.php @@ -117,7 +117,7 @@ ), 'data-confirm' => sprintf( _('Soll die Veranstaltung %1$s wirklich aus dem Archiv gelöscht werden?'), - htmlReady($course->name) + $course->name ), 'class' => 'text-top', ]) ?> diff --git a/app/views/start/_widget.php b/app/views/start/_widget.php index f343a892e78..65747ebf273 100644 --- a/app/views/start/_widget.php +++ b/app/views/start/_widget.php @@ -28,7 +28,7 @@ <? if (isset($admin_url)): ?> <a href="<?= URLHelper::getLink($admin_url) ?>"> - <?= Icon::create('admin', Icon::ROLE_CLICKABLE, ['title' => htmlReady($admin_title)]) ?> + <?= Icon::create('admin', Icon::ROLE_CLICKABLE, ['title' => $admin_title]) ?> </a> <? endif ?> diff --git a/app/views/studiengaenge/informationen/degree.php b/app/views/studiengaenge/informationen/degree.php index 60d913f529d..be9a69fe2d2 100644 --- a/app/views/studiengaenge/informationen/degree.php +++ b/app/views/studiengaenge/informationen/degree.php @@ -35,9 +35,9 @@ <a href="<?= $controller->messagehelper(['abschluss_id' => $deg->abschluss_id]) ?>" data-dialog> <?= Icon::create('mail')->asImg( - ['title' => htmlReady(sprintf( + ['title' => sprintf( _('Alle Studierenden mit dem Studienabschluss %s benachrichtigen.'), - $deg->name)) + $deg->name) ]) ?> </a> <? endif ?> diff --git a/app/views/studiengaenge/informationen/index.php b/app/views/studiengaenge/informationen/index.php index 2b3ab5db423..fcdbc3b25e0 100644 --- a/app/views/studiengaenge/informationen/index.php +++ b/app/views/studiengaenge/informationen/index.php @@ -36,7 +36,7 @@ <?= Icon::create('mail')->asImg( ['title' => sprintf( _('Alle Studierenden des Faches %s benachrichtigen.'), - htmlReady($studycourse->name)) + $studycourse->name) ]) ?> </a> </td> diff --git a/app/views/studiengaenge/informationen/showdegree.php b/app/views/studiengaenge/informationen/showdegree.php index 1a0160345fe..82aa0078d98 100644 --- a/app/views/studiengaenge/informationen/showdegree.php +++ b/app/views/studiengaenge/informationen/showdegree.php @@ -28,9 +28,9 @@ Icon::create( 'mail', Icon::ROLE_CLICKABLE, - ['title' => htmlReady(sprintf( + ['title' => sprintf( _('Nachricht an alle Studierende mit dem Studiengang %s mit dem Abschluss %s'), - $studycourse->name, $deg->name)) + $studycourse->name, $deg->name) ]), ['data-dialog' => '']) ->render() diff --git a/app/views/studiengaenge/informationen/showstudycourse.php b/app/views/studiengaenge/informationen/showstudycourse.php index 3a3f733fe4f..7cd7ceda46c 100644 --- a/app/views/studiengaenge/informationen/showstudycourse.php +++ b/app/views/studiengaenge/informationen/showstudycourse.php @@ -28,9 +28,9 @@ Icon::create( 'mail', Icon::ROLE_CLICKABLE, - ['title' => htmlReady(sprintf( + ['title' => sprintf( _('Nachricht an alle Studierende mit dem Studiengang %s mit dem Abschluss %s'), - $course->name, $degree->name)) + $course->name, $degree->name) ]), ['data-dialog' => ''])->render() ?> diff --git a/app/views/studiengaenge/stgteilbezeichnungen/index.php b/app/views/studiengaenge/stgteilbezeichnungen/index.php index 31da64ba120..96bf7d07f25 100644 --- a/app/views/studiengaenge/stgteilbezeichnungen/index.php +++ b/app/views/studiengaenge/stgteilbezeichnungen/index.php @@ -51,7 +51,7 @@ <?= Icon::create('trash', Icon::ROLE_CLICKABLE , ['title' => _('Studiengangteil-Bezeichnung löschen')]) ->asInput([ 'formaction' => $controller->action_url('delete/' . $stgteilbezeichnung->id), - 'data-confirm' => sprintf(_('Wollen Sie wirklich die Studiengangteil-Bezeichnung "%s" löschen?'), htmlReady($stgteilbezeichnung->name)),]) ?> + 'data-confirm' => sprintf(_('Wollen Sie wirklich die Studiengangteil-Bezeichnung "%s" löschen?'), $stgteilbezeichnung->name)]) ?> <? endif; ?> </td> </tr> diff --git a/app/views/studiengaenge/studiengaenge/aufbaustg_table.php b/app/views/studiengaenge/studiengaenge/aufbaustg_table.php index d84265c3047..039d4646e64 100644 --- a/app/views/studiengaenge/studiengaenge/aufbaustg_table.php +++ b/app/views/studiengaenge/studiengaenge/aufbaustg_table.php @@ -69,7 +69,7 @@ $perm = MvvPerm::get($grund_stg); <?= Icon::create('trash')->asInput([ 'formaction' => $controller->url_for('studiengaenge/studiengaenge/aufbaustg_delete', $aufbau_stg->id), 'title' => _('Zuordnung als Aufbaustudiengang löschen'), - 'data-confirm' => sprintf(_('Wollen Sie wirklich die Zuordnung von "%s" als "%s" löschen?'), htmlReady($aufbau_stg->getDisplayName()), htmlReady($aufbau_stg->typ)) + 'data-confirm' => sprintf(_('Wollen Sie wirklich die Zuordnung von "%s" als "%s" löschen?'), $aufbau_stg->getDisplayName(), $aufbau_stg->typ) ]) ?> </a> <? endif; ?> diff --git a/app/views/studiengaenge/studiengaenge/studiengaenge.php b/app/views/studiengaenge/studiengaenge/studiengaenge.php index ad677ed9a54..6d2ba908e0f 100644 --- a/app/views/studiengaenge/studiengaenge/studiengaenge.php +++ b/app/views/studiengaenge/studiengaenge/studiengaenge.php @@ -76,7 +76,7 @@ Icon::create('trash', Icon::ROLE_CLICKABLE ,tooltip2(_('Studiengang löschen'))), [ 'formaction' => $controller->action_url('delete/' . $studiengang->id), - 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengang "%s" löschen?'), htmlReady($studiengang->name)) + 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengang "%s" löschen?'), $studiengang->name) ] ) ?> <? endif; ?> diff --git a/app/views/studiengaenge/studiengaenge/studiengangteile.php b/app/views/studiengaenge/studiengaenge/studiengangteile.php index 5815b2fd7cf..7c3cf92d314 100644 --- a/app/views/studiengaenge/studiengaenge/studiengangteile.php +++ b/app/views/studiengaenge/studiengaenge/studiengangteile.php @@ -35,7 +35,7 @@ 'trash', Icon::ROLE_CLICKABLE, ['title' => _('Zuordnung des Studiengangteils löschen')] - )->asInput(['data-confirm' => htmlReady($msg)]); ?> + )->asInput(['data-confirm' => $msg]); ?> </form> <? else : ?> <? $msg = sprintf( @@ -50,7 +50,7 @@ 'trash', Icon::ROLE_CLICKABLE , ['title' => _('Zuordnung des Studiengangteils löschen')] - )->asInput(['data-confirm' => htmlReady($msg)]); ?> + )->asInput(['data-confirm' => $msg]); ?> </form> <? endif; ?> <? endif; ?> diff --git a/app/views/studiengaenge/studiengangteile/details_grouped.php b/app/views/studiengaenge/studiengangteile/details_grouped.php index 28345c1465d..6f10bd02b0f 100644 --- a/app/views/studiengaenge/studiengangteile/details_grouped.php +++ b/app/views/studiengaenge/studiengangteile/details_grouped.php @@ -13,7 +13,7 @@ <tr> <td> <? if (!empty($ampel_icon)) : ?> - <?= $ampel_icon->asImg(['title' => htmlReady($ampelstatus), 'style' => 'vertical-align: text-top;']) ?> + <?= $ampel_icon->asImg(['title' => $ampelstatus, 'style' => 'vertical-align: text-top;']) ?> <? endif; ?> <?= htmlReady($stgteil->getDisplayName()) ?> </td> @@ -42,7 +42,7 @@ Icon::ROLE_CLICKABLE , ['title' => _('Studiengangteil löschen'), 'formaction' => $controller->action_url('delete/' . $stgteil->getId()), - 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengangteil "%s" löschen?'), htmlReady($stgteil->getDisplayName()))] + 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengangteil "%s" löschen?'), $stgteil->getDisplayName())] )) ?> <? endif; ?> diff --git a/app/views/studiengaenge/studiengangteile/index.php b/app/views/studiengaenge/studiengangteile/index.php index 8c50c4cd6dc..353b2c67e31 100644 --- a/app/views/studiengaenge/studiengangteile/index.php +++ b/app/views/studiengaenge/studiengangteile/index.php @@ -77,7 +77,7 @@ Icon::create('trash', Icon::ROLE_CLICKABLE, [ 'title' => _('Studiengangteil löschen'), 'formaction' => $controller->action_url('delete/' . $stgteil->getId()), - 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengangteil "%s" löschen?'), htmlReady($stgteil->getDisplayName())), + 'data-confirm' => sprintf(_('Wollen Sie wirklich den Studiengangteil "%s" löschen?'), $stgteil->getDisplayName()), ]) ) ?> <? endif; ?> diff --git a/app/views/studiengaenge/versionen/abschnitte.php b/app/views/studiengaenge/versionen/abschnitte.php index bad66734b78..16204507ae3 100644 --- a/app/views/studiengaenge/versionen/abschnitte.php +++ b/app/views/studiengaenge/versionen/abschnitte.php @@ -44,7 +44,7 @@ Icon::create('trash', Icon::ROLE_CLICKABLE, tooltip2(_('Studiengangteil-Abschnitt löschen'))), [ 'formaction' => $controller->action_url('delete_abschnitt/' . $abschnitt->id), - 'data-confirm' => sprintf(_('Wollen Sie den Studiengangteil-Abschnitt "%s" wirklich löschen?'), htmlReady($abschnitt->getDisplayName())) + 'data-confirm' => sprintf(_('Wollen Sie den Studiengangteil-Abschnitt "%s" wirklich löschen?'), $abschnitt->getDisplayName()) ] ) ?> <? endif; ?> diff --git a/app/views/studiengaenge/versionen/details_abschnitt.php b/app/views/studiengaenge/versionen/details_abschnitt.php index 843316c156b..3b1c0e76953 100644 --- a/app/views/studiengaenge/versionen/details_abschnitt.php +++ b/app/views/studiengaenge/versionen/details_abschnitt.php @@ -46,8 +46,8 @@ 'formaction' => $controller->action_url('delete_modul', $assignment->abschnitt_id, $assignment->modul_id), 'data-confirm' => sprintf( _('Wollen Sie die Zuordnung des Moduls "%s" zum Studiengangteil-Abschnitt "%s" wirklich löschen?'), - htmlReady($assignment->modul->getDisplayName()), - htmlReady($abschnitt->getDisplayName()) + $assignment->modul->getDisplayName(), + $abschnitt->getDisplayName() ) ]); ?> <? endif; ?> diff --git a/app/views/studiengaenge/versionen/versionen.php b/app/views/studiengaenge/versionen/versionen.php index f4ad9af8fd2..aff5d5f5871 100644 --- a/app/views/studiengaenge/versionen/versionen.php +++ b/app/views/studiengaenge/versionen/versionen.php @@ -30,7 +30,7 @@ $controller->action_url('approve/' . $version->id), _('Version genehmigen'), Icon::create('accept', Icon::ROLE_CLICKABLE, ['title' => _('Version genehmigen')]), - ['data-dialog' => 'title=' . htmlReady($version->getDisplayName()) . '']) + ['data-dialog' => 'title=\'' . $version->getDisplayName() . '\'']) ?> <? endif; ?> <? if ($perm->haveFieldPerm('abschnitte', MvvPerm::PERM_CREATE)) : ?> @@ -59,7 +59,7 @@ 'formaction' => $controller->action_url('copy_version/' . $version->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich die Version "%s" des Studiengangteils kopieren?'), - htmlReady($version->getDisplayName())) + $version->getDisplayName()) ] )) ?> @@ -73,7 +73,7 @@ 'formaction' => $controller->action_url('delete_version/' . $version->id), 'data-confirm' => sprintf( _('Wollen Sie wirklich die Version "%s" des Studiengangteils löschen?'), - htmlReady($version->getDisplayName())) + $version->getDisplayName()) ] )) ?> diff --git a/templates/calendar/entries/icons.php b/templates/calendar/entries/icons.php index c9fd74b0395..9829d41a387 100644 --- a/templates/calendar/entries/icons.php +++ b/templates/calendar/entries/icons.php @@ -2,10 +2,10 @@ <? if (!empty($entry['icons'])) foreach ($entry['icons'] as $icon) : ?> <? if($icon['url']) : ?> <a href="<?= $icon['url'] ?>" <?= $icon['onClick'] ? 'onClick="STUDIP.Calendar.clickEngine('. $icon['onClick'].', this, event); return false;"' : '' ?>> - <?= Assets::img($icon['image'], ['title' => htmlReady($icon['title']), 'alt' => htmlReady($icon['title'])]) ?> + <?= Assets::img($icon['image'], ['title' => $icon['title'], 'alt' => $icon['title']]) ?> </a> <? else : ?> - <?= Assets::img($icon['image'], ['title' => htmlReady($icon['title'])]) ?> + <?= Assets::img($icon['image'], ['title' => $icon['title']]) ?> <? endif; ?> <? endforeach ?> </div> diff --git a/templates/mail/notification_html.php b/templates/mail/notification_html.php index 77a71b627b7..5060fb7452d 100644 --- a/templates/mail/notification_html.php +++ b/templates/mail/notification_html.php @@ -35,7 +35,7 @@ <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= htmlReady($module['text']) ?></a> </td> <td> - <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= $module['icon']->asImg(['title' => htmlReady($module['text'])]) ?></a> + <a href="<?= URLHelper::getLink($module['url'], ['sso' => $sso]) ?>"><?= $module['icon']->asImg(['title' => $module['text']]) ?></a> </td> </tr> <? endforeach ?> diff --git a/templates/sidebar/clipboard-area.php b/templates/sidebar/clipboard-area.php index 4a4adf5b72b..7905ea29570 100644 --- a/templates/sidebar/clipboard-area.php +++ b/templates/sidebar/clipboard-area.php @@ -83,7 +83,7 @@ <td class="actions"> <?= Icon::create('trash')->asInput( [ - 'title' => sprintf(_('%s löschen.'), htmlReady($item['name'])), + 'title' => sprintf(_('%s löschen.'), $item['name']), 'data-confirm-message' => _('Sind Sie sicher?'), 'class' => 'text-bottom clipboard-item-remove-button' ] diff --git a/templates/tabs.php b/templates/tabs.php index 3efab21bbfd..2a5cf0bc173 100644 --- a/templates/tabs.php +++ b/templates/tabs.php @@ -25,9 +25,9 @@ $ebene3 = []; ?> <a href="<?= URLHelper::getLink($nav->getURL()) ?>" <?= arrayToHtmlAttributes($attr) ?>> <? if ($image = $nav->getImage()) : ?> - <?= $image->asImg(['class' => "tab-icon", 'title' => $nav->getTitle() ? htmlReady($nav->getTitle()) : htmlReady($nav->getDescription())]) ?> + <?= $image->asImg(['class' => "tab-icon", 'title' => $nav->getTitle() ? $nav->getTitle() : $nav->getDescription()]) ?> <? endif ?> - <span title="<?= $nav->getDescription() ? htmlReady($nav->getDescription()) : htmlReady($nav->getTitle())?>" class="tab-title"><?= $nav->getTitle() ? htmlReady($nav->getTitle()) : ' ' ?></span> + <span title="<?= $nav->getDescription() ? htmlReady($nav->getDescription()) : htmlReady($nav->getTitle())?>" class="tab-title"><?= $nav->getTitle() ? htmlReady($nav->getTitle()) : ' ' ?></span> </a> <? if (count($nav->getSubNavigation()) > 1): ?> @@ -50,7 +50,7 @@ $ebene3 = []; <? else: ?> <span class="quiet tab-title"> <? if ($image = $nav->getImage()) : ?> - <?= $image->asImg(['class' => "tab-icon", 'title' => htmlReady($nav->getTitle())]) ?> + <?= $image->asImg(['class' => "tab-icon", 'title' => $nav->getTitle()]) ?> <? endif ?> <?= htmlReady($nav->getTitle()) ?> </span> -- GitLab