X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Fvirtual_links%2FnsVirtualLinkCreateSource.js;h=7e4f02aa5892dad5984adb7a89245d4a644272ac;hp=f4f8eabda2f894269d2dbf913bf6a1adcbd29fad;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js index f4f8eabda..7e4f02aa5 100644 --- a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js +++ b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js @@ -34,7 +34,7 @@ export default { remote(state, nsrId, payload) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'api/nsr/' + nsrId + '/vld' + '?api_server=' + API_SERVER, + url: 'api/nsr/' + encodeURIComponent(nsrId) + '/vld' + '?api_server=' + API_SERVER, type: 'POST', beforeSend: Utils.addAuthorizationStub, dataType:'json', @@ -59,7 +59,7 @@ export default { remote(state, nsrId, vldId) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'api/nsr/' + nsrId + '/vld/' + vldId + '?api_server=' + API_SERVER, + url: 'api/nsr/' + encodeURIComponent(nsrId) + '/vld/' + encodeURIComponent(vldId) + '?api_server=' + API_SERVER, type: 'DELETE', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -82,7 +82,7 @@ export default { remote(state, nsrId, vldId, vld) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'api/nsr/' + nsrId + '/vld/' + vldId + '?api_server=' + API_SERVER, + url: 'api/nsr/' + encodeURIComponent(nsrId) + '/vld/' + encodeURIComponent(vldId) + '?api_server=' + API_SERVER, type: 'PUT', beforeSend: Utils.addAuthorizationStub, dataType:'json',