Skip to content

Commit

Permalink
added escape function to the icon field
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and dvesh3 committed Jan 27, 2022
1 parent e94591d commit 832c34a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -119,7 +119,7 @@ public function getTreeAction(Request $request)
'id' => $class->getId(),
'text' => $text,
'leaf' => true,
'icon' => $class->getIcon() ? $class->getIcon() : $defaultIcon,
'icon' => $class->getIcon() ? htmlspecialchars($class->getIcon()) : $defaultIcon,
'cls' => 'pimcore_class_icon',
'propertyVisibility' => $class->getPropertyVisibility(),
'enableGridLocking' => $class->isEnableGridLocking(),
Expand Down

0 comments on commit 832c34a

Please sign in to comment.