Project

General

Profile

Actions

Bug #4724

closed

URI.extract parses HREFs in single quotes incorrectly

Added by matthewvermaak (matt vermaak) about 14 years ago. Updated about 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
Backport:
[ruby-core:36272]

Description

require 'uri'; URI.extract(%Q{'http://host.com/link'}, ['http'])
=> ["http://host.com/link'"]

Did not expect the trailing single quote. This is reproducible in Ruby 1.8.7

Updated by naruse (Yui NARUSE) about 14 years ago

  • Status changed from Open to Rejected

URI arrows single quoete in its path or query, so it's spec.
See also RFC2396 (and RFC3986).

Actions

Also available in: Atom PDF

Like0
Like0