mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Merge two conditions
This commit is contained in:
parent
787d373211
commit
2314500515
1 changed files with 1 additions and 5 deletions
|
@ -181,11 +181,7 @@ func sanitizeAttributes(baseURL, tagName string, attributes []html.Attribute) ([
|
||||||
}
|
}
|
||||||
|
|
||||||
if tagName == "img" && (attribute.Key == "width" || attribute.Key == "height") {
|
if tagName == "img" && (attribute.Key == "width" || attribute.Key == "height") {
|
||||||
if !isPositiveInteger(value) {
|
if isImageLargerThanLayout || !isPositiveInteger(value) {
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if isImageLargerThanLayout {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue