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
18
18
*/
19
19
public function normaliseBaseSignatureUrl ($ url ): string
20
20
{
21
+ $ registeredHttpScheme = Uri \UriFactory::getRegisteredSchemeClass ('http ' );
22
+ $ registeredHttpsScheme = Uri \UriFactory::getRegisteredSchemeClass ('https ' );
21
23
Uri \UriFactory::registerScheme ('http ' , Http::class);
22
24
Uri \UriFactory::registerScheme ('https ' , Http::class);
23
-
24
25
$ uri = Uri \UriFactory::factory ($ url );
26
+ Uri \UriFactory::registerScheme ('http ' , $ registeredHttpScheme );
27
+ Uri \UriFactory::registerScheme ('https ' , $ registeredHttpsScheme );
25
28
$ uri ->normalize ();
26
29
if ($ uri ->getScheme () == 'http ' && $ uri ->getPort () == '80 ' ) {
27
30
$ uri ->setPort ('' );
You can’t perform that action at this time.
0 commit comments