File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ public function get_result() : result {
79
79
if ($ noreplydomain == $ domain ) {
80
80
$ status = result::OK ;
81
81
$ summary = "LMS is same as noreply domain " ;
82
- } else if (str_contains ($ domain , '. ' . $ noreplydomain )) {
82
+ } else if (strpos ($ domain , '. ' . $ noreplydomain ) !== false ) {
83
83
$ status = result::OK ;
84
84
$ summary = "LMS is a subdomain of noreply domain " ;
85
- } else if (str_contains ($ noreplydomain , '. ' . $ domain )) {
85
+ } else if (strpos ($ noreplydomain , '. ' . $ domain ) !== false ) {
86
86
$ status = result::OK ;
87
87
$ summary = "Noreply domain is a subdomain of LMS " ;
88
- } else if ($ noreply == $ primarydomain || str_contains ($ noreplydomain , '. ' . $ primarydomain )) {
88
+ } else if ($ noreply == $ primarydomain || strpos ($ noreplydomain , '. ' . $ primarydomain ) !== false ) {
89
89
$ summary = "LMS and noreply domain have a shared domain " ;
90
90
} else {
91
91
$ summary = "LMS and noreply domain have nothing in common " ;
Original file line number Diff line number Diff line change @@ -276,13 +276,13 @@ public function get_selector_suffix($domain = '') {
276
276
if ($ primarydomain == $ noreplydomain ) {
277
277
// Noreply domain is same as primary domain, add all LMS subdomains.
278
278
$ suffix = $ this ->get_subdomains ($ domain );
279
- } else if (str_contains ($ domain , '. ' . $ noreplydomain )) {
279
+ } else if (strpos ($ domain , '. ' . $ noreplydomain ) !== false ) {
280
280
// Noreply domain includes part of the LMS subdomain, only add different subdomains.
281
281
$ suffix = str_replace ('. ' . $ noreplydomain , '' , $ domain );
282
- } else if (str_contains ($ noreplydomain , '. ' . $ domain )) {
282
+ } else if (strpos ($ noreplydomain , '. ' . $ domain ) !== false ) {
283
283
// Noreply domain is a subdomain of LMS, domain already has all info.
284
284
$ suffix = '' ;
285
- } else if (str_contains ($ noreplydomain , '. ' . $ primarydomain )) {
285
+ } else if (strpos ($ noreplydomain , '. ' . $ primarydomain ) !== false ) {
286
286
// Noreply domain is a different subdomain of primary domain, add all LMS subdomains.
287
287
$ suffix = $ this ->get_subdomains ($ domain );
288
288
} else {
You can’t perform that action at this time.
0 commit comments