Project

General

Profile

Actions

Bug #6983

closed

URI:HTTP accepts invalid uri

Bug #6983: URI:HTTP accepts invalid uri

Added by zbskii (Brett Carter) about 13 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
-
ruby -v:
1.9.3
Backport:
[ruby-core:47439]

Description

URI.parse will parse 'http:/foo.com' as a valid HTTP uri, even though it's missing a / between the scheme and authority.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Bug #6386: URI.parse should raise an error for invalid uri 'http:/'Rejectedakira (akira yamada)Actions

Updated by ayumin (Ayumu AIZAWA) about 13 years ago Actions #1 [ruby-core:47470]

  • Assignee set to akira (akira yamada)

Updated by ayumin (Ayumu AIZAWA) about 13 years ago Actions #2 [ruby-core:47471]

  • Status changed from Open to Assigned

Updated by naruse (Yui NARUSE) about 12 years ago Actions #3

  • Status changed from Assigned to Rejected

"http:/foo" is valid absolute-URI.

see http://tools.ietf.org/html/rfc3986

absolute-URI = scheme ":" hier-part [ "?" query ]

scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )

hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty

path-absolute = "/" [ segment-nz *( "/" segment ) ]

segment = pchar
segment-nz = 1
pchar

pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

Actions

Also available in: PDF Atom