Language: JavaScript
Label: vulnerable
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
function(Z){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?A.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(Z):this.createRoughCanvas(Z)};var N=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Z,ba,ia,qa,ra){null!=Z.handJiggle&&Z.handJiggle.passThrough||N.apply(this,arguments)};var X=mxShape.prototype.paint;mxShape.prototype.paint=function(Z){var ba=Z.addTolerance,
ia=!0;null!=this.style&&(ia="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Z.handJiggle&&Z.handJiggle.constructor==l&&!this.outline){Z.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,xa=Z.setStrokeColor;Z.setStrokeColor=function(){};var Ca=Z.setFillColor;Z.setFillColor=function(){};ia||null==qa||(this.configurePointerEvents=function(){});Z.handJiggle.passThrough=!0;X.apply(this,arguments);Z.handJiggle.passThrough=
!1;Z.setFillColor=Ca;Z.setStrokeColor=xa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;Z.restore();ia&&null!=qa&&(Z.addTolerance=function(){})}X.apply(this,arguments);Z.addTolerance=ba};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Z,ba,ia,qa,ra,pa){null!=Z.handJiggle&&Z.handJiggle.constructor==l?(Z.handJiggle.passThrough=!0,U.apply(this,arguments),Z.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(l){return null==