From: Mel Gray Date: 2007-10-27T08:59:25+09:00 Subject: Patch for minor OpenURI annoyance ------=_Part_8769_9059935.1193443167499 Content-Type: multipart/alternative; boundary="----=_Part_8770_16106090.1193443167500" ------=_Part_8770_16106090.1193443167500 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Found a minor bug in OpenURI & submitting my fix. When attempting to open a web page that redirects from a regular http connection to a https connection, OpenURI dies. It is a very common thing to have web pages redirect users to and from secure connections, so I made a minor modification to the "redirectable?" method to allow this. This is a short term fix. A more long term solution would be to extend the "redirectable?" check to allow users to configure what they want to allow ------=_Part_8770_16106090.1193443167500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Found a minor bug in OpenURI & submitting my fix.
When attempting to open a web page that redirects from a regular http connection to a https connection, OpenURI dies.

It is a very common thing to have web pages redirect users to and from secure connections, so I made a minor modification to the "redirectable?" method to allow this.

This is a short term fix. A more long term solution would be to extend the "redirectable?" check to allow users to configure what they want to allow

------=_Part_8770_16106090.1193443167500-- ------=_Part_8769_9059935.1193443167499 Content-Type: text/x-patch; name=ruby-changes.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f89cwh26 Content-Disposition: attachment; filename=ruby-changes.patch SW5kZXg6IGxpYi9vcGVuLXVyaS5yYgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWIvb3Blbi11cmkucmIJKHJl dmlzaW9uIDEzNzg3KQorKysgbGliL29wZW4tdXJpLnJiCSh3b3JraW5nIGNvcHkpCkBAIC0yMjQs NyArMjI0LDcgQEAKICAgICAjIGZpbGU6Ly8vZXRjL3Bhc3N3ZC4KICAgICAjIEhvd2V2ZXIgdGhp cyBpcyBhZCBob2MuICBJdCBzaG91bGQgYmUgZXh0ZW5zaWJsZS9jb25maWd1cmFibGUuCiAgICAg dXJpMS5zY2hlbWUuZG93bmNhc2UgPT0gdXJpMi5zY2hlbWUuZG93bmNhc2UgfHwKLSAgICAoL1xB KD86aHR0cHxmdHApXHovaSA9fiB1cmkxLnNjaGVtZSAmJiAvXEEoPzpodHRwfGZ0cClcei9pID1+ IHVyaTIuc2NoZW1lKQorICAgICgvXEEoPzpodHRwfGh0dHBzfGZ0cClcei9pID1+IHVyaTEuc2No ZW1lICYmIC9cQSg/Omh0dHB8aHR0cHN8ZnRwKVx6L2kgPX4gdXJpMi5zY2hlbWUpCiAgIGVuZAog CiAgIGRlZiBPcGVuVVJJLm9wZW5faHR0cChidWYsIHRhcmdldCwgcHJveHksIG9wdGlvbnMpICMg Om5vZG9jOgo= ------=_Part_8769_9059935.1193443167499--