mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-109 : Fix upload new image for logo (#982)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user