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