Skip to content

Commit

Permalink
[Task] Optimizing dialog (#14500)
Browse files Browse the repository at this point in the history
* Optimizing dialog

* Modify optimization
  • Loading branch information
mattamon committed Mar 1, 2023
1 parent b337612 commit c6368b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/Document/Editable/Link.php
Expand Up @@ -299,6 +299,11 @@ private function updatePathFromInternal($realPath = false, $editmode = false)
}
}

// sanitize attributes
if(isset($this->data['attributes'])) {
$this->data['attributes'] = htmlspecialchars($this->data['attributes'], HTML_ENTITIES);
}

// deletes unnecessary attribute, which was set by mistake in earlier versions, see also
// https://github.com/pimcore/pimcore/issues/7394
if (isset($this->data['type'])) {
Expand Down

0 comments on commit c6368b7

Please sign in to comment.