Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(service): avoid sanitize/esape calls on null/undefined param values
Browse files Browse the repository at this point in the history
Solves #1670
  • Loading branch information
knalli committed Jan 1, 2017
1 parent ac2a038 commit 331e0dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service/sanitization.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ function $translateSanitizationProvider () {
return result;
} else if (angular.isNumber(value)) {
return value;
} else {
} else if (!angular.isUndefined(value) && value !== null) {
return iteratee(value);
} else {
return value;
}
};
}

0 comments on commit 331e0dd

Please sign in to comment.