QHttpServerRequestFilter: rewrite isRequestAllowed() using STL algorithms
Now the code reads like English:
- if the whitelist isn't empty:
- return whether any of whitelist matches
- otherwise
- return whether none of blacklist matches
Also avoids the unintended QList detaches, and fixes the incorrect
mutable for loop variables.
Amends 2d9e98680087c91db35f069e9cdbd31ddc50b5d5.
Pick-to: 6.10
Change-Id: I2cc9aa0f8bed56abc97af642a2c908b9769a20a3
Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io>
Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>