Skip to content

Commit

Permalink
fix import escaping to new function (#8831)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Jan 10, 2025
1 parent 58dd5b1 commit 7ee8f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected function getActions(ilDclTable $table): array

$actions[] = $this->ui_factory->button()->shy(
$this->lng->txt('dcl_tableviews'),
$this->ctrl->getLinkTargetByClass(ilDclFieldListGUI::class, 'show')
$this->ctrl->getLinkTargetByClass(ilDclTableViewGUI::class, 'show')
);

$actions[] = $this->ui_factory->button()->shy(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ public function importRecord(
): void {
foreach ($a_rec as $key => &$value) {
$array = json_decode($value, true);
if ($key === 'title' || $key === 'description') {
$value = strip_tags($value, ilObjectGUI::ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION);
} elseif (is_array($array)) {
if (is_array($array)) {
$value = json_encode($this->escapeArray($array));
} else {
$value = $this->refinery->encode()->htmlSpecialCharsAsEntities()->transform($value);
Expand Down

0 comments on commit 7ee8f45

Please sign in to comment.