Просмотр исходного кода

Merge branch 'fix/url_mapping' into 'develop'

Merge of fix/url_mapping to develop 修正根据路径转发的一些bug

See merge request o2oa/o2oa!637
胡起 5 лет назад
Родитель
Сommit
221537d2e9

+ 4 - 4
o2web/source/o2_core/o2/xAction/services/x_cms_assemble_control.js

@@ -353,7 +353,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
             var url = this.action.actions.getAttachmentData.uri;
             url = url.replace("{id}", encodeURIComponent(id));
             url = url.replace("{documentid}", encodeURIComponent(documentid));
-            window.open(this.action.address+url);
+            window.open(o2.filterUrl(this.action.address+url));
         }.bind(this));
     },
     getAttachmentStream: function(id, documentid){
@@ -361,7 +361,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
             var url = this.action.actions.getAttachmentStream.uri;
             url = url.replace("{id}", encodeURIComponent(id));
             url = url.replace("{documentid}", encodeURIComponent(documentid));
-            window.open(this.action.address+url);
+            window.open(o2.filterUrl(this.action.address+url));
         }.bind(this));
     },
     getAttachmentUrl: function(id, documentid, callback){
@@ -369,7 +369,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
             var url = this.action.actions.getAttachmentData.uri;
             url = url.replace("{id}", encodeURIComponent(id));
             url = url.replace("{documentid}", encodeURIComponent(documentid));
-            if (callback) callback(this.action.address+url);
+            if (callback) callback(o2.filterUrl(this.action.address+url));
         }.bind(this));
     },
     convertLocalImageToBase64: function(size, success, failure, formData, file){
@@ -380,7 +380,7 @@ MWF.xAction.RestActions.Action["x_cms_assemble_control"] = new Class({
             var url = this.action.actions.getImage.uri;
             url = url.replace("{id}", encodeURIComponent(id));
             url = url.replace("{documentid}", encodeURIComponent(documentid));
-            if (callback) callback(this.action.address+url);
+            if (callback) callback(o2.filterUrl(this.action.address+url));
         }.bind(this));
     },
     //--index--