diff --git a/composer.lock b/composer.lock index 8035b1e0a..8ef34abdb 100644 --- a/composer.lock +++ b/composer.lock @@ -2930,16 +2930,16 @@ }, { "name": "stripe/stripe-php", - "version": "v17.3.0", + "version": "v17.4.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "cfe8244f7e5f910b7fdb5c2cf77428c0acbb9f7c" + "reference": "893946057e43b145826b0dfd7f398673e381e2ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/cfe8244f7e5f910b7fdb5c2cf77428c0acbb9f7c", - "reference": "cfe8244f7e5f910b7fdb5c2cf77428c0acbb9f7c", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/893946057e43b145826b0dfd7f398673e381e2ae", + "reference": "893946057e43b145826b0dfd7f398673e381e2ae", "shasum": "" }, "require": { @@ -2983,9 +2983,9 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v17.3.0" + "source": "https://github.com/stripe/stripe-php/tree/v17.4.0" }, - "time": "2025-05-28T18:59:29+00:00" + "time": "2025-07-01T20:23:15+00:00" }, { "name": "symfony/asset", diff --git a/src/load.php b/src/load.php index 14797f932..dd97f0663 100644 --- a/src/load.php +++ b/src/load.php @@ -79,7 +79,7 @@ function checkSSL(): void global $request; if (!empty(Config::getProperty('security.force_https')) && Config::getProperty('security.force_https') && !Environment::isCLI()) { - if (!$request->isSecure()) { + if (!Tools::isHTTPS()) { header('Location: https://' . $request->getHost() . $request->getRequestUri()); exit; } @@ -257,8 +257,11 @@ function init(): void define('INSTANCE_ID', Config::getProperty('info.instance_id', 'Unknown')); // Set the system URL. - $scheme = Config::getProperty('security.force_https', true) || $request->isSecure() ? 'https://' : 'http://'; - define('SYSTEM_URL', $scheme . Config::getProperty('url')); + $scheme = Config::getProperty('security.force_https', true) || Tools::isHTTPS() ? 'https://' : 'http://'; + + // Keep the app working correctly if the URL didn't get correctly updated + $url = str_replace(['https://', 'http://'], '', Config::getProperty('url')); + define('SYSTEM_URL', $scheme . $url); // Set the default interface. define('BIND_TO', Tools::getDefaultInterface());