1
0
Fork 0
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:
jvoisin 2024-12-07 23:00:20 +01:00 committed by Frédéric Guillot
parent 787d373211
commit 2314500515

View file

@ -181,11 +181,7 @@ func sanitizeAttributes(baseURL, tagName string, attributes []html.Attribute) ([
}
if tagName == "img" && (attribute.Key == "width" || attribute.Key == "height") {
if !isPositiveInteger(value) {
continue
}
if isImageLargerThanLayout {
if isImageLargerThanLayout || !isPositiveInteger(value) {
continue
}
}