ACS-109 : Fix upload new image for logo (#982)

This commit is contained in:
Chris Shields
2020-05-04 14:07:39 +01:00
parent 34caf837dd
commit aeb86f7c3b

View File

@@ -2882,12 +2882,10 @@ public class ScriptNode implements Scopeable, NamespacePrefixResolverProvider
{
protected void doTransform(SynchronousTransformClient synchronousTransformClient, ContentReader reader, ContentWriter writer)
{
Map<String, String> actualOptions = Collections.emptyMap();
Map<String, String> actualOptions = new HashMap<>(1);
if (options != null || !options.trim().isEmpty())
{
// TODO it might be possible to extract some of the 'known ones' into actualOptions.
throw new IllegalArgumentException("ImageMagick commandOptions '"+options+
"' may no longer be passed blindly to the transformer for security reasons.");
actualOptions.put(ImageTransformationOptions.OPT_COMMAND_OPTIONS, options);
}
transformNodeRef(synchronousTransformClient, reader, writer, actualOptions, sourceNodeRef);
}