Language: JavaScript
Label: safe
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:
"%"!=X.charAt(0)&&(X=unescape(window.atob?atob(X):Base64.decode(cont,X))),null!=X&&"%"==X.charAt(0)&&(X=decodeURIComponent(X)),null!=X&&0<X.length)l=mxUtils.parseXml(X).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==l||A||(U=null,"diagram"==l.nodeName?U=l:"mxfile"==l.nodeName&&(X=l.getElementsByTagName("diagram"),0<X.length&&(U=X[Math.max(0,Math.min(X.length-1,urlParams.page||0))])),null!=U&&(l=Editor.parseDiagramNode(U,O)));null==l||"mxGraphModel"==l.nodeName||A&&"mxfile"==
l.nodeName||(l=null);return l};Editor.parseDiagramNode=function(l,A){var O=mxUtils.trim(mxUtils.getTextContent(l)),X=null;0<O.length?(l=Graph.decompress(O,null,A),null!=l&&0<l.length&&(X=mxUtils.parseXml(l).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(X=mxUtils.createXmlDocument(),X.appendChild(X.importNode(l[0],!0)),X=X.documentElement));return X};Editor.getDiagramNodeXml=function(l){var A=mxUtils.getTextContent(l),O=null;0<A.length?O=Graph.decompress(A):null!=l.firstChild&&(O=mxUtils.getXml(l.firstChild));