diff --git a/plugins/ldap-login-mapping/index.php b/plugins/ldap-login-mapping/index.php index 64b983696..ea00ee759 100644 --- a/plugins/ldap-login-mapping/index.php +++ b/plugins/ldap-login-mapping/index.php @@ -107,7 +107,7 @@ class LDAPLoginMappingPlugin extends AbstractPlugin $sSmtpUser = $sResult['login']; $sEmail = $sResult['email']; } - syslog(LOG_WARNING, "plugins/ldap-login-mapping/index.php:FilterLoginДredentials() auth try: $sIP/$sEmail, resolved as $sImapUser/$sEmail"); + syslog(LOG_WARNING, "plugins/ldap-login-mapping/index.php:FilterLoginCredentials() auth try: $sIP/$sEmail, resolved as $sImapUser/$sEmail"); } } diff --git a/plugins/two-factor-auth/index.php b/plugins/two-factor-auth/index.php index a080ae08b..21b449daa 100644 --- a/plugins/two-factor-auth/index.php +++ b/plugins/two-factor-auth/index.php @@ -131,7 +131,7 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin private static function getQRCode(MainAccount $oAccount, string $secret) : string { $email = \rawurlencode($oAccount->Email()); -// $issuer = \rawurlencode(\RainLoop\API::Config()->Get('webmail', 'title', 'SnappyMail')); +// $issuer = \rawurlencode(\RainLoop\Api::Config()->Get('webmail', 'title', 'SnappyMail')); $QR = \SnappyMail\QRCode::getMinimumQRCode( // "otpauth://totp/{$issuer}:{$email}?secret={$secret}&issuer={$issuer}", "otpauth://totp/{$email}?secret={$secret}", diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/Settings.php b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/Settings.php index de25b99cd..4049b8a12 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/Settings.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/Settings.php @@ -33,7 +33,7 @@ class Settings extends \MailSo\Net\ConnectSettings public function __construct() { parent::__construct(); - $oConfig = \RainLoop\API::Config(); + $oConfig = \RainLoop\Api::Config(); $this->viewErrors = !!$oConfig->Get('labs', 'smtp_show_server_errors', false); } diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php index 26ab6e6a0..b3ad82241 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php @@ -542,7 +542,7 @@ class ServiceActions } /** - * Login with the \RainLoop\API::CreateUserSsoHash() generated hash + * Login with the \RainLoop\Api::CreateUserSsoHash() generated hash */ public function ServiceSso() : string { diff --git a/snappymail/v/0.0.0/app/libraries/polyfill/php8.php b/snappymail/v/0.0.0/app/libraries/polyfill/php8.php deleted file mode 100644 index 92a5dc534..000000000 --- a/snappymail/v/0.0.0/app/libraries/polyfill/php8.php +++ /dev/null @@ -1,76 +0,0 @@ -binary = static::findBinary('gpg'); - $info = \preg_replace('/\R +/', ' ', `$this->binary --with-colons --list-config`); + $info = \preg_replace('/\R +/', ' ', \shell_exec(\escapeshellcmd($this->binary) . ' --with-colons --list-config')); if (\preg_match('/cfg:version:([0-9]+\\.[0-9]+\\.[0-9]+)/', $info, $match)) { $this->version = $match[1]; } diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/gpg/smime.php b/snappymail/v/0.0.0/app/libraries/snappymail/gpg/smime.php index 55a40301b..ec17fdd9e 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/gpg/smime.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/gpg/smime.php @@ -43,7 +43,7 @@ class SMIME extends Base // How to use gpgme-json ? $this->binary = static::findBinary('gpgsm'); - $info = \preg_replace('/\R +/', ' ', \shell_exec("{$this->binary} --version")); + $info = \preg_replace('/\R +/', ' ', \shell_exec(\escapeshellcmd($this->binary) . ' --version') ); if (\preg_match('/gpgsm.+([0-9]+\\.[0-9]+\\.[0-9]+)/', $info, $match)) { $this->version = $match[1]; } diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php index 145c21929..97873d50c 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php @@ -91,8 +91,8 @@ abstract class Integrity public static function phpVersion() { - if (PHP_VERSION_ID < 70400) { - return 'Your PHP version ('.PHP_VERSION.') is lower than the minimal required 7.4.0!'; + if (PHP_VERSION_ID < 80200) { + return 'Your PHP version ('.PHP_VERSION.') is lower than the minimal required 8.2.0!'; } } diff --git a/snappymail/v/0.0.0/include.php b/snappymail/v/0.0.0/include.php index 947d7a800..724c81312 100644 --- a/snappymail/v/0.0.0/include.php +++ b/snappymail/v/0.0.0/include.php @@ -3,11 +3,6 @@ if (defined('APP_VERSION_ROOT_PATH')) { return; } -// PHP 8 -if (PHP_VERSION_ID < 80000) { - require __DIR__ . '/app/libraries/polyfill/php8.php'; -} - if (!extension_loaded('ctype')) { require __DIR__ . '/app/libraries/polyfill/ctype.php'; }