File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/internal/Magento/Framework/Oauth/Helper/Signature Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ class Hmac extends HmacSignature
1818 */
1919 public function normaliseBaseSignatureUrl ($ url ): string
2020 {
21+ $ registeredHttpScheme = Uri \UriFactory::getRegisteredSchemeClass ('http ' );
22+ $ registeredHttpsScheme = Uri \UriFactory::getRegisteredSchemeClass ('https ' );
2123 Uri \UriFactory::registerScheme ('http ' , Http::class);
2224 Uri \UriFactory::registerScheme ('https ' , Http::class);
23-
2425 $ uri = Uri \UriFactory::factory ($ url );
26+ Uri \UriFactory::registerScheme ('http ' , $ registeredHttpScheme );
27+ Uri \UriFactory::registerScheme ('https ' , $ registeredHttpsScheme );
2528 $ uri ->normalize ();
2629 if ($ uri ->getScheme () == 'http ' && $ uri ->getPort () == '80 ' ) {
2730 $ uri ->setPort ('' );
You can’t perform that action at this time.
0 commit comments