From a6034ace1bf051c2b927fc5245a051c0afe2c6a8 Mon Sep 17 00:00:00 2001 From: rugk Date: Wed, 3 Sep 2025 14:25:04 +0000 Subject: [PATCH] test: PHP considers this invalid --- tst/YourlsProxyTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tst/YourlsProxyTest.php b/tst/YourlsProxyTest.php index 5b0c5f30..11c07a86 100644 --- a/tst/YourlsProxyTest.php +++ b/tst/YourlsProxyTest.php @@ -67,6 +67,7 @@ class YourlsProxyTest extends TestCase array('https://example.com'), // missing path and query parameter, array('https://example.com/'), // missing query 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 { 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'), );