[#68845] [Ruby trunk - Feature #11056] [PATCH] lib/net/*: use io/wait methods instead of IO.select — normalperson@...
Issue #11056 has been updated by Eric Wong.
3 messages
2015/04/11
[#68945] [Ruby trunk - Feature #11083] [Open] Gemify net-telnet — shibata.hiroshi@...
Issue #11083 has been reported by Hiroshi SHIBATA.
4 messages
2015/04/21
[#68951] Re: [Ruby trunk - Feature #11083] [Open] Gemify net-telnet
— Eric Wong <normalperson@...>
2015/04/21
shibata.hiroshi@gmail.com wrote:
[#69012] [Ruby trunk - Feature #11105] [Open] ES6-like hash literals — shugo@...
Issue #11105 has been reported by Shugo Maeda.
5 messages
2015/04/29
[ruby-core:68763] [Ruby trunk - Feature #3719] open-uri should allow redirects from http to https
From:
gary4gar@...
Date:
2015-04-05 10:56:29 UTC
List:
ruby-core #68763
Issue #3719 has been updated by Gaurish Sharma. I am wondering, What's the status of this? if help is required to push this forward. I am willing to help ---------------------------------------- Feature #3719: open-uri should allow redirects from http to https https://bugs.ruby-lang.org/issues/3719#change-52045 * Author: Hans de Graaff * Status: Assigned * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- =begin Currently open-uri does not allow redirects from http to https. http://redmine.ruby-lang.org/repositories/revision/1?rev=21381 reverts the ability to redirect between http and https with a note that this may compromise security, but as far as I can tell this is only true for https -> http redirects. Redirecting from http -> https should not pose such security problems and could still be allowed. This can be accomplished by allowing https for the destination URL, but not for the source URL: + def OpenURI.redirectable?(uri1, uri2) # :nodoc: + # This test is intended to forbid a redirection from http://... to + # file:///etc/passwd. + # However this is ad hoc. It should be extensible/configurable. + uri1.scheme.downcase == uri2.scheme.downcase || + (/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:https?|ftp)\z/i =~ uri2.scheme) + end I'm seeing this issue with ruby 1.8.7 but the code for ruby 1.9.2 is the same. =end -- https://bugs.ruby-lang.org/