diff --git a/Sources/Actions/Login2.php b/Sources/Actions/Login2.php index 89f07205a18..f9df75745c4 100644 --- a/Sources/Actions/Login2.php +++ b/Sources/Actions/Login2.php @@ -800,7 +800,7 @@ protected function DoLogin(): void $update = [ 'member_ip' => User::$me->ip, 'member_ip2' => IP::getUserIPAlternative(), - 'validation_code' => '' + 'validation_code' => '', ]; if (empty(User::$me->tfa_secret)) { diff --git a/Sources/Avatar.php b/Sources/Avatar.php index 0c6524a9d1c..0a53b405d23 100644 --- a/Sources/Avatar.php +++ b/Sources/Avatar.php @@ -499,7 +499,7 @@ public function __construct( true, ) ) { - $url = new Url(Config::$modSettings['custom_avatar_url'] . '/' . ltrim(strtr($this->filename, '\\', '/'), '/')); + $url = new Url(Config::$modSettings['avatar_url'] . '/' . ltrim(strtr($this->filename, '\\', '/'), '/')); } break; diff --git a/Sources/PackageManager/PackageUtils.php b/Sources/PackageManager/PackageUtils.php index 356c0f5648b..53e6f2f7959 100644 --- a/Sources/PackageManager/PackageUtils.php +++ b/Sources/PackageManager/PackageUtils.php @@ -234,14 +234,14 @@ public static function readTgzData(string $data, ?string $destination, bool $sin // Protect from accidental parent directory writing... do { $prev = $current['filename']; - $current['filename'] = strtr($current['filename'], array( + $current['filename'] = strtr($current['filename'], [ '../' => '', '/..' => '', '..' . DIRECTORY_SEPARATOR => '', DIRECTORY_SEPARATOR . '..' => '', '..\\' => '', '\\..' => '', - )); + ]); } while ($prev !== $current['filename']); if (!file_exists($destination . '/' . $current['filename'])) {