Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-61658 user: Fix parsing of the agedigitalconsentmap setting
When parsing and validating the value of the Digital age of consent
(agedigitalconsentmap) field, we want to load all country codes. Not
just the ones whitelisted for drop down menus that users can choose
from.
  • Loading branch information
mudrd8mz committed Mar 21, 2018
1 parent c485e42 commit a3ef470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/classes/digital_consent.php
Expand Up @@ -71,7 +71,7 @@ public static function is_minor($age, $country) {
public static function parse_age_digital_consent_map($ageconsentmap) {

$ageconsentmapparsed = array();
$countries = get_string_manager()->get_list_of_countries();
$countries = get_string_manager()->get_list_of_countries(true);
$isdefaultvaluepresent = false;
$lines = preg_split('/\r|\n/', $ageconsentmap, -1, PREG_SPLIT_NO_EMPTY);
foreach ($lines as $line) {
Expand Down

0 comments on commit a3ef470

Please sign in to comment.