We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e770987 commit 020b2cdCopy full SHA for 020b2cd
src/ng/sanitizeUri.js
@@ -63,7 +63,7 @@ function $$SanitizeUriProvider() {
63
var normalizedVal;
64
// NOTE: urlResolve() doesn't support IE < 8 so we don't sanitize for that case.
65
if (!msie || msie >= 8 ) {
66
- normalizedVal = urlResolve(uri).href;
+ normalizedVal = urlResolve(uri && uri.trim()).href;
67
if (normalizedVal !== '' && !normalizedVal.match(regex)) {
68
return 'unsafe:'+normalizedVal;
69
}
0 commit comments