Skip to content
Snippets Groups Projects
Commit bf8184f2 authored by Oliver Hader's avatar Oliver Hader Committed by Andreas Kienast
Browse files

[BUGFIX] Allow ws and wss schemes in TYPO3\CMS\Core\Http\Uri

Resolves: #103190
Releases: main, 12.4
Change-Id: Icb71b994b3ca14463dbb86b91551af6d60918096
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83173


Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
parent 0f8ac727
Branches
Tags
No related merge requests found
......@@ -53,6 +53,8 @@ class Uri implements UriInterface
protected array $supportedSchemes = [
'http' => 80,
'https' => 443,
'ws' => 80,
'wss' => 443,
];
/**
......
......@@ -43,6 +43,8 @@ final class UriTest extends UnitTestCase
return [
'full uri' => [ 'https://user:pass@local.example.com:3001/foo?bar=baz#quz' ],
'double slash' => [ 'https://user:pass@local.example.com:3001//' ],
'websocket uri' => [ 'ws://user:pass@local.example.com:3001/foo?bar=baz#quz' ],
'secure websocket uri' => [ 'wss://user:pass@local.example.com:3001/foo?bar=baz#quz' ],
];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment