yellowtree / geoip-detect

Wordpress plugin "Geolocation IP Detection": Provides geographic information detected by an IP adress.
http://wordpress.org/plugins/geoip-detect/
GNU General Public License v3.0
163 stars 38 forks source link

License key validation does not work with new license key format from MaxMind #226

Closed oschwald closed 1 year ago

oschwald commented 1 year ago

The current license key validation fails on new license keys from MaxMind, e.g., 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. It appears that the current validation requires the keys to match ^[A-Za-z0-9]{16}$:

https://github.com/yellowtree/geoip-detect/blob/d42e18c534dc53a48f27bc02663277c40d2f0c48/data-sources/manual.php#L139-L156

The new license keys match [A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk. The length may also increase in the future. See these release notes for more information.

benjaminpick commented 1 year ago

Thank you for notifying me!