Skip to content

Commit 4a2792f

Browse files
alex40724fwolf-ilias
authored andcommitted
46643: Exercise: Stored XSS with TinyMCE/Rich..., part ii
Signed-off-by: Releasemanager <webmaster@ilias.de>
1 parent 092a8d6 commit 4a2792f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

components/ILIAS/Exercise/Submission/class.ilExSubmissionTextGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function updateAssignmentTextObject(
202202
// we are not using a purifier, so we have to set the valid RTE tags
203203
// :TODO:
204204
$rte = $form->getItemByPostVar("atxt");
205-
$rte->setRteTags(ilObjAdvancedEditing::_getUsedHTMLTags("exc_ass"));
205+
$rte->setRteTagSet("mini");
206206

207207
if ($form->checkInput()) {
208208
$text = trim($form->getInput("atxt"));

components/ILIAS/Exercise/classes/class.ilExcTextSubmissionPurifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function getPurifierConfigInstance(): HTMLPurifier_Config
3636
$config->set('Cache.SerializerPath', ilHtmlPurifierAbstractLibWrapper::_getCacheDirectory());
3737
$config->set('HTML.Doctype', 'XHTML 1.0 Strict');
3838

39-
$tags = ilObjAdvancedEditing::_getUsedHTMLTags("exc_ass");
39+
$tags = self::TAGSET;
4040
$tags = $this->makeElementListTinyMceCompliant($tags);
4141
$config->set('HTML.AllowedElements', $this->removeUnsupportedElements($tags));
4242
$config->set('HTML.ForbiddenAttributes', 'div@style');

0 commit comments

Comments
 (0)