Skip to content

Commit

Permalink
USERGRID-317 API URL needs to be quoted.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnament committed Jan 8, 2015
1 parent 4d24a98 commit bebf6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/js/global/ug-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ AppServices.Services.factory('ug', function (configuration, $rootScope,utility,
break;
}
//override with querystring
DATA_URL = qs.api_url || DATA_URL;
DATA_URL = qs['api_url'] || DATA_URL;
DATA_URL = DATA_URL.lastIndexOf('/') === DATA_URL.length - 1 ? DATA_URL.substring(0,DATA_URL.length-1) : DATA_URL;
return {
DATA_URL: DATA_URL,
Expand Down

0 comments on commit bebf6a7

Please sign in to comment.