File php7.diff of Package roundcubemail-plugin-authres_status

diff --git a/authres_status.php b/authres_status.php
index c400316..8130796 100755
--- a/authres_status.php
+++ b/authres_status.php
@@ -356,7 +356,7 @@ class authres_status extends rcube_plugin
                         $authorEmail = $m[1];
                     }
 
-                    if (str_contains($authorEmail, '@')) {
+                    if (strpos($authorEmail, '@') !== false) {
                         $authorDomain = explode('@', $authorEmail, 2)[1];
                     }
 
@@ -407,7 +407,8 @@ class authres_status extends rcube_plugin
 
                                 if (!$isAuthorValid) {
                                     // Check if authorDomain is a subdomain of the signee
-                                    $isAuthorValid = str_ends_with($authorDomain, '.' . str_replace('@', '', $pvalue));
+                                    $teststr = '.' . str_replace('@', '', $pvalue);
+                                    $isAuthorValid = substr($authorDomain, -strlen($teststr)) === $teststr;
                                 }
                             }
 
openSUSE Build Service is sponsored by