fix never matched condition, kudos @ShiftLeftSecurity, found via #807
This commit is contained in:
parent
a2ffbafa13
commit
2bc54caa07
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ class Request
|
||||||
}
|
}
|
||||||
krsort($mediaTypes);
|
krsort($mediaTypes);
|
||||||
foreach ($mediaTypes as $acceptedQuality => $acceptedValues) {
|
foreach ($mediaTypes as $acceptedQuality => $acceptedValues) {
|
||||||
if ($acceptedQuality === 0.0) {
|
if ($acceptedQuality === '0.0') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
foreach ($acceptedValues as $acceptedValue) {
|
foreach ($acceptedValues as $acceptedValue) {
|
||||||
|
|
Loading…
Reference in a new issue