Deprecated syntax to access string offsets in PHP 7.4
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2020 19:19:56 +0000 (20:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2020 19:19:56 +0000 (20:19 +0100)
wcfsetup/install/files/lib/system/email/Mailbox.class.php

index 048d4499c748ee26d2ba0fbffb7b1ef2ac07ea8a..89ecc6dac4f9a24cbca1316b0db3240a89526329 100644 (file)
@@ -53,7 +53,7 @@ class Mailbox {
                
                // We don't support SMTPUTF8
                for ($i = 0; $i < $atSign; $i++) {
-                       if (ord($localpart{$i}) & 0b10000000) {
+                       if (ord($localpart[$i]) & 0b10000000) {
                                throw new \DomainException("The localpart of the given email address '".$address."' contains 8-bit characters.");
                        }
                }