Commit Graph
30 Commits
Author SHA1 Message Date
Nihaal Shaikh 06a5f9c8c9 Fix #2 - Reject IP addresses that Moodle cannot match
The custom IP field and the predefined ranges form accepted invalid
entries such as 2001:db8::1garbage, 192.168.1.0/24garbage or
192.168.1.0/999. address_in_subnet() silently skips those entries, so a
"must not" restriction with a typo let blocked users in.

Validation now only accepts formats address_in_subnet() can match: a
single address, a subnet (mask 0-32 / 0-128) or a range in the last
group with end >= start. IPv6 forms cleanremoteaddr() cannot parse are
rejected as well. JS and PHP share the same rules; PHP also checks each
entry against address_in_subnet() as a safety net.

- Allow spaces after commas in the restriction field
- Support IPv6 ranges, e.g. 2001:db8::1-ff
- Add PHPUnit tests for helper::is_valid_ipaddress_list()
- Bump version to 2026101500 (5.3.2)
2026-10-15 09:04:58 +02:00
Luuk Verhoeven b1f0bc2f09 Update version.php 2026-10-14 10:49:32 +02:00
Nihaal Shaikh 00941bbc54 Update #124cwve5xb7 - Bump release to 5.3.0 for Moodle 5.3 support 2026-09-23 11:34:38 +02:00
Nihaal Shaikh cf5409707f Update #124cwve5xb7 - Bump release to 5.2.0 for Moodle 5.2 support 2026-09-23 11:01:30 +02:00
Hamza Tamyachte d65fd40621 Update #86c89ftg9 - Bump release to 5.1.1 for plugin availability_ipaddress 2026-03-18 10:21:56 +01:00
Hamza Tamyachte d2c231e657 Merge branch 'main' into 86c89ftg9-fix-php-version-compat 2026-03-18 10:16:46 +01:00
Hamza Tamyachte 700820480d Update #86c89ftg9 - Bump version to 2026031800 for plugin availability_ipaddress 2026-03-18 10:13:19 +01:00
Nihaal Shaikh 5dce3ed488 Update #86c8jzuvd - upgraded plugin to support Moodle 5.1, moved changelog to separate file 2026-03-03 13:26:17 +01:00
Vincent Cornelis fe3a5b2302 Update #86c46bd0u - Add support for predefined IP addresses/ranges 2025-08-04 17:38:30 +02:00
Jan Choroś e7e5cbe91d Update #86c3hkgy9 - Update Moodle Version 50 2025-05-22 15:35:21 +02:00
Luuk Verhoeven d56173f6b8 Update version.php 2025-04-04 10:21:42 +02:00
Nihaal Shaikh b98a63e1f4 Update #86c2xmcmw - readme and version file updated 2025-04-04 09:25:26 +02:00
Luuk Verhoeven 761d643479 Update version 2024-07-20 22:22:05 +02:00
Luuk Verhoeven 8ae54193d2 Update code and environment checks 2024-07-20 15:01:12 +02:00
Luuk Verhoeven f24ef270a5 Update version.php 2022-06-04 11:08:38 +02:00
Hamza Tamyachte 84ea4a9165 Add Moodle 4.0 Support 2022-05-30 11:38:27 +02:00
Vincent Cornelis 30459042d7 Update version.php
Bumped version number
2022-02-11 17:42:18 +01:00
Vincent Cornelis 54ac7002d8 bumped versionnumber 2021-12-15 11:26:08 +01:00
Vincent Cornelis 5d25933dfb bumped versionnumber 2021-12-09 13:54:49 +01:00
Vincent Cornelis 28f6d4603b added end-of-lines 2021-12-09 13:42:54 +01:00
Luuk Verhoeven 29a4857d8a Update for MOODLE310 2020-11-18 09:45:40 +01:00
Luuk Verhoeven 3ba695cb97 Update for Moodle 3.9 2020-06-15 22:17:50 +02:00
Luuk Verhoeven fbe446e53b Update travis tests for Moodle 3.8 2019-11-14 15:07:50 +01:00
Luuk Verhoeven 6c92077941 Add privacy provider. 2019-05-21 14:48:00 +02:00
Luuk Verhoeven dc0a3aeb43 Update code style 2019-05-15 14:14:14 +02:00
Luuk Verhoeven ec6f3d71a4 Remove console.log using Y.log instead 2019-05-15 10:53:49 +02:00
Luuk Verhoeven f5561fc100 Update code style 2019-05-14 20:36:16 +02:00
Luuk Verhoeven ee0784d146 Init base structure 2019-05-14 19:55:34 +02:00
Luuk Verhoeven 738c2af2d5 Init 2019-05-14 12:26:15 +02:00
Luuk Verhoeven 3542e7a7d0 first commit 2019-05-14 12:25:43 +02:00