mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-19 21:58:08 -04:00
test: PHP considers this invalid
This commit is contained in:
@@ -67,6 +67,7 @@ class YourlsProxyTest extends TestCase
|
|||||||
array('https://example.com'), // missing path and query parameter,
|
array('https://example.com'), // missing path and query parameter,
|
||||||
array('https://example.com/'), // missing query parameter
|
array('https://example.com/'), // missing query parameter
|
||||||
array('https://example.com?paste=something'), // missing path parameter
|
array('https://example.com?paste=something'), // missing path parameter
|
||||||
|
array('https://example.com@foreign.malicious.example?foo#bar'), // shall belong to providerForeignUrlUsernameTrick, but for some reason PHP considers this an invalid URL
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +87,7 @@ class YourlsProxyTest extends TestCase
|
|||||||
public function providerForeignUrlUsernameTrick(): array
|
public function providerForeignUrlUsernameTrick(): array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array('https://example.com@foreign.malicious.example?foo#bar'),
|
// array('https://example.com@foreign.malicious.example?foo#bar'),
|
||||||
array('https://example.com/@foreign.malicious.example?foo#bar'),
|
array('https://example.com/@foreign.malicious.example?foo#bar'),
|
||||||
array('https://example.com/?@foreign.malicious.example?foo#bar'),
|
array('https://example.com/?@foreign.malicious.example?foo#bar'),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user