https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112008-12-19T03:44:21ZRuby Issue Tracking SystemRuby master - Bug #454: URI does not follow the last rfc about uri syntaxhttps://bugs.ruby-lang.org/issues/454?journal_id=21272008-12-19T03:44:21Zjonaswitt (Jonas Witt)jonas.Witt@student.hpi.uni-potsdam.de
<ul><li><strong>File</strong> <a href="/attachments/177">454.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/177/454.patch">454.patch</a> added</li></ul><p>=begin<br>
lib/uri/common.rb currently references RFCs 2732 and 2396. RFC 3986, as linked to by the original poster, obsoletes both RFCs.</p>
<p>The attached patch adjusts the definitions of UNRESERVED and RESERVED to comply with RFC 3986, thereby fixing the "#" issue, among others:</p>
<blockquote>
<p>URI.escape('<a href="http://www.example.com/the" class="external">http://www.example.com/the</a> page.html#fragment')<br>
=> "<a href="http://www.example.com/the%20page.html#fragment" class="external">http://www.example.com/the%20page.html#fragment</a>"</p>
</blockquote>
<p>This bug is filed against Ruby 1.8, but it's the same on the 1.9.1 branch and the same patch applies.</p>
<p>=end</p> Ruby master - Bug #454: URI does not follow the last rfc about uri syntaxhttps://bugs.ruby-lang.org/issues/454?journal_id=30172009-02-03T12:30:24Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Assignee</strong> set to <i>akira (akira yamada)</i></li><li><strong>ruby -v</strong> set to <i>-</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #454: URI does not follow the last rfc about uri syntaxhttps://bugs.ruby-lang.org/issues/454?journal_id=30782009-02-05T10:02:01Zakira (akira yamada)akira@arika.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>=begin<br>
URI.escape does not parse the argument string as an URI.<br>
The method only replace all UNSAFE chars in the string.<br>
=end</p>