Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#124 Hostname extracted incorrectly from URIs containing @ sign

closed-fixed
Perrick Penet
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