#124 Hostname extracted incorrectly from URIs containing @ sign

closed-fixed
Web tester (52)
5
2007-12-24
2007-12-17
Matt Raines
No

If I do:

class SomeTest extends WebTestCase {
public function testSomething() {
$this->get('http://localhost/name@example.com');
}
}

SimpleTest complains:

Error reading socket [Cannot open [example.com:80] with [Connection timed out]
within [15] seconds]

It seems to be sending "localhost/name" as a username to "example.com".

But section 3.2.2 of RFC2396 says that the username section of a URI cannot contain "/", and section 3.3 says a path component can contain "@", so this behaviour is not correct.

Discussion

  • Perrick Penet

    Perrick Penet - 2007-12-24
    • assigned_to: lastcraft --> pp11
    • status: open --> closed-fixed
     
  • Perrick Penet

    Perrick Penet - 2007-12-24

    Logged In: YES
    user_id=292377
    Originator: NO

    Thank you for the bug report. It's now fixed in the SVN trunk.

    Yours, Perrick

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks