This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1434,7 +1434,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1434
1434
// That works even dynamically, but it's not bypassable through the $sce.
1435
1435
// Instead, if you want several unsafe URLs as-is, you should probably
1436
1436
// use trustAsHtml on the whole tag.
1437
- if ( nodeName === 'img' && key === 'srcset' ) {
1437
+ if ( nodeName === 'img' && key === 'srcset' && value ) {
1438
1438
1439
1439
// sanitize img[srcset] values
1440
1440
var result = "" ;
@@ -2929,11 +2929,11 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2929
2929
( tag !== "img" && ( attrNormalizedName === "src" ||
2930
2930
attrNormalizedName === "ngSrc" ) ) ) {
2931
2931
return $sce . RESOURCE_URL ;
2932
- } else if ( tag == "img" && ( attrNormalizedName == "src" ||
2933
- attrNormalizedName == "ngSrc" ) ||
2934
- tag == "a" && ( attrNormalizedName == "href" ||
2935
- attrNormalizedName == "xlinkHref" ||
2936
- attrNormalizedName == "ngHref" ) ) {
2932
+ } else if ( tag === "img" && ( attrNormalizedName = == "src" ||
2933
+ attrNormalizedName === "ngSrc" ) ||
2934
+ tag === "a" && ( attrNormalizedName = == "href" ||
2935
+ attrNormalizedName === "xlinkHref" ||
2936
+ attrNormalizedName === "ngHref" ) ) {
2937
2937
return $sce . URL ;
2938
2938
}
2939
2939
}
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ function $InterpolateProvider() {
138
138
}
139
139
140
140
function isConcatenationAllowed ( context ) {
141
- return context == $sce . URL ;
141
+ return context === $sce . URL ;
142
142
}
143
143
144
144
/**
@@ -307,7 +307,7 @@ function $InterpolateProvider() {
307
307
}
308
308
}
309
309
310
- if ( concat . length == 1 && expressionPositions . length == 1 ) {
310
+ if ( concat . length === 1 && expressionPositions . length = == 1 ) {
311
311
singleExpression = true ;
312
312
}
313
313
You can’t perform that action at this time.
0 commit comments