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

pull/817/head
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
1 changed files with 1 additions and 1 deletions

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) {