Skip to content

Commit

Permalink
oauth2: Strict Matching Default True
Browse files Browse the repository at this point in the history
This changes the default for Strict Matching from `false` to `true` so
that new emails are strict unless explicitly set otherwise. This also
adds some descriptive comments to the getter and setter.
  • Loading branch information
JediKev committed Feb 16, 2023
1 parent cb3625e commit f531718
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/class.email.php
Expand Up @@ -1394,10 +1394,16 @@ static function create($ht=false) {
*
*/
class EmailAccountConfig extends Config {
/*
* Get strict matching (default: true)
*/
public function getStrictMatching() {
return $this->get('strict_matching', false);
return $this->get('strict_matching', true);
}

/*
* Set strict matching
*/
public function setStrictMatching($mode) {
return $this->set('strict_matching', !!$mode);
}
Expand Down

0 comments on commit f531718

Please sign in to comment.