https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-08-19T12:54:49ZRuby Issue Tracking SystemRuby master - Bug #10147: URI parsing with ruby 2.2.0dev https://bugs.ruby-lang.org/issues/10147?journal_id=484042014-08-19T12:54:49Zahmadsherif (Ahmad Sherif)me@ahmadsherif.com
<ul></ul><p>URI module is now using an RFC3986 parser by default (starting r46491), '[' and ']' characters are not allowed in a URI's query per the RFC.</p>
<p>You can still use the old parser (RFC2396) like this</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="nb">require</span> <span class="s1">'uri'</span>
<span class="nb">p</span> <span class="o">=</span> <span class="no">URI</span><span class="o">::</span><span class="no">Parser</span><span class="p">.</span><span class="nf">new</span>
<span class="nb">p</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="s1">'//example.org/nested_optional_group?items[][key]=foo'</span><span class="p">)</span>
</code></pre>
<p>or you can have a look at this <a href="https://gist.github.com/lengarvey/31983eac6664351ed16d" class="external">https://gist.github.com/lengarvey/31983eac6664351ed16d</a></p> Ruby master - Bug #10147: URI parsing with ruby 2.2.0dev https://bugs.ruby-lang.org/issues/10147?journal_id=792352019-07-09T05:16:33Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul>