Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
q.model.getChildAt(e,C))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var k=c[e.substring(e.indexOf(",")+1)];e=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==e.substring(0,17))try{var q=JSON.parse(e.substring(17));if(null!=q.actions){for(var p=0;p<q.actions.length;p++){var t=q.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var x=t.open.substring(t.open.indexOf(",")+1);k=c[x];null!=k?t.open="data:page/id,"+k:null==this.getPageById(x)&&delete t.open}}e=
"data:action/json,"+JSON.stringify(q)}}catch(C){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,k,q,p){var t=mxUtils.bind(this,function(x){this.loadingExtensions=!1;null!=k?k(x):this.handleError(x)});this.createTimeout(null,mxUtils.bind(this,function(x){q=null!=q?q:c.name;var C=mxUtils.bind(this,function(B){x.clear()&&t(B)}),I=mxUtils.bind(this,function(){this.loadingExtensions=