fix never matched condition, kudos @ShiftLeftSecurity, found via #807

This commit is contained in:
El RIDO 2021-06-05 10:33:01 +02:00
parent a2ffbafa13
commit 2bc54caa07
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -288,7 +288,7 @@ class Request
}
krsort($mediaTypes);
foreach ($mediaTypes as $acceptedQuality => $acceptedValues) {
if ($acceptedQuality === 0.0) {
if ($acceptedQuality === '0.0') {
continue;
}
foreach ($acceptedValues as $acceptedValue) {