Skip to content
Snippets Groups Projects
Commit 9e3af772 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

purify input of accessibility info text, fixes #2408

Closes #2408

Merge request studip/studip!1605
parent 62944a2a
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,12 @@ class Admin_AccessibilityInfoTextController extends AuthenticatedController ...@@ -26,7 +26,12 @@ class Admin_AccessibilityInfoTextController extends AuthenticatedController
public function edit_action() public function edit_action()
{ {
CSRFProtection::verifyUnsafeRequest(); CSRFProtection::verifyUnsafeRequest();
Config::get()->store('ACCESSIBILITY_INFO_TEXT', Request::i18n('accessbility_info_text'));
Config::get()->store(
'ACCESSIBILITY_INFO_TEXT',
Studip\Markup::purifyHtml(Request::i18n('accessbility_info_text'))
);
PageLayout::postSuccess(_('Die Einstellungen wurden gespeichert.')); PageLayout::postSuccess(_('Die Einstellungen wurden gespeichert.'));
$this->relocate('admin/accessibility_info_text/index'); $this->relocate('admin/accessibility_info_text/index');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment