Skip to content

Commit

Permalink
LTI: HTML escaping in titles
Browse files Browse the repository at this point in the history
Added htmlspecialchars in ilLTIConsumeProvider::assignFromDbRow
  • Loading branch information
ZallaxDev committed Dec 9, 2024
1 parent 5bfbcb7 commit 08d7ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/LTIConsumer/classes/class.ilLTIConsumeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public function assignFromDbRow(array $dbRow): void
switch ($field) {
case 'id': $this->setId((int) $value);
break;
case 'title': $this->setTitle($value);
case 'title': $this->setTitle(htmlspecialchars($value));
break;
case 'description': $this->setDescription($value);
break;
Expand Down

0 comments on commit 08d7ad7

Please sign in to comment.