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>
commit08c22f913806e0c75357ecb535d607056172fa25
parent719e409526e2e9ad7adc8868e827391e54a460ae
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 26 Jun 2025 14:31:30 +0200