mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 16:41:29 -03:30
Merge pull request #4734 from jaredevantabor/encodeParams
adding extra check for string in encodeParams
This commit is contained in:
commit
223c1d5110
@ -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