Uh oh!
There was an error while loading. Please reload this page.
Detect weird local ips - #34160
Conversation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
The call to idn_to_utf8 call is actually to apply normalization Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kesselb
commented
Sep 20, 2022
Thanks for taking care 👍 In theory we can drop the iputils (symfony http-foundation) again and only use the ip-lib package: https://github.com/mlocati/ip-lib#check-if-an-address-is-contained-in-a-range This could also help with #33567 |
come-nc
commented
Sep 20, 2022
Hum but I trust the range detection in symfony more, especially it correctly tests ipv6 in ipv4 ranges, which ip-lib does not. |
kesselb
commented
Sep 20, 2022
Good point 👍 |
come-nc
commented
Sep 20, 2022
@kesselb I can make a PR to use ip-lib instead of iputils but I’d like to do so in a separate PR once this one is merged. |
nickvergessen
commented
Sep 20, 2022
3rdparty merged |
kesselb
commented
Sep 20, 2022
Sorry I was just thinking loud. The current way is fine and we can combine both libraries. |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
come-nc
commented
Sep 20, 2022
/backport to stable24 |
come-nc
commented
Sep 20, 2022
/backport to stable23 |
nickvergessen
commented
Sep 21, 2022
/backport to stable22 |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
PVince81
commented
Sep 22, 2022
/backport to stable25 |
blizzz
commented
Sep 22, 2022
/backport to stable25 |
Use new dependency to detect weird syntaxes