CheckSvgContent trigger

The CheckSvgContent trigger validates that Scalable Vector Graphics (SVG) images do not contain external links.

When enabled, this trigger runs just before the Release command releases an image. If the image has a mime-type of svg, this trigger confirms that the image contains a link to an external reference of type //@xlink:href). If the image includes an external reference, an error message occurs and the Release action does not occur.

To enable this trigger, add a trigger to the triggers.xml file as described in Enable a trigger. Use the following values:

apply-to

Release

class

com.ixiasoft.cms.triggers.CheckSvgContent

objtype

image

schedule

before

Example

<trigger apply-to="Release" class="com.ixiasoft.cms.triggers.CheckSvgContent" name="CheckSVGContent" objtype="image" schedule="before">
</trigger>