Skip to content

Commit

Permalink
Added a validation rule for IP anonymization
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jun 5, 2021
1 parent acddcaf commit 8e4c3d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public_html/admin/configuration_validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// | |
// | List of validation rules for Core configurations |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2007-2020 by the following authors: |
// | Copyright (C) 2007-2021 by the following authors: |
// | |
// | Authors: Akeda Bagus - admin AT gedex DOT web DOT id |
// | Tom Homer - tomhomer AT gmail DOT com |
Expand Down Expand Up @@ -62,6 +62,7 @@
$_CONF_VALIDATE['Core']['terms_of_use_link'] = ['rule' => 'stringOrEmpty'];
$_CONF_VALIDATE['Core']['privacy_policy_link'] = ['rule' => 'stringOrEmpty'];
$_CONF_VALIDATE['Core']['about_cookies_link'] = ['rule' => 'stringOrEmpty'];
$_CONF_VALIDATE['Core']['ip_anonymization'] = ['rule' => ['range', -1, 31536000]]; // Max 1 year

// Subgroup Site, Tab Mail
$_CONF_VALIDATE['Core']['site_mail'] = ['rule' => 'email'];
Expand Down

0 comments on commit 8e4c3d2

Please sign in to comment.