mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
adding extra check for string in encodeParams
This commit is contained in:
@@ -74,7 +74,9 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
|
|||||||
if (Array.isArray(value)){
|
if (Array.isArray(value)){
|
||||||
let concated = '';
|
let concated = '';
|
||||||
angular.forEach(value, function(item){
|
angular.forEach(value, function(item){
|
||||||
item = item.replace(/"|'/g, "");
|
if(item && typeof item === 'string') {
|
||||||
|
item = item.replace(/"|'/g, "");
|
||||||
|
}
|
||||||
concated += `${key}=${item}&`;
|
concated += `${key}=${item}&`;
|
||||||
});
|
});
|
||||||
return concated;
|
return concated;
|
||||||
|
|||||||
Reference in New Issue
Block a user