Selaa lähdekoodia

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

El RIDO 5 vuotta sitten
vanhempi
sitoutus
2bc54caa07
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/Request.php

+ 1 - 1
lib/Request.php

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