mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
fix(url): disallowed wonky path (#4386)
This commit is contained in:
@@ -36,6 +36,12 @@ class UrlTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function testIllegalPath()
|
||||
{
|
||||
$this->expectException(\UrlException::class);
|
||||
Url::fromString('https://example.com//foo');
|
||||
}
|
||||
|
||||
public function testMutation()
|
||||
{
|
||||
$this->assertSame('http://example.com/foo', (Url::fromString('http://example.com/'))->withPath('/foo')->__toString());
|
||||
|
Reference in New Issue
Block a user