Project

General

Profile

Bug #13852

Backport r59693,59695 (Net::HTTP should raise error when CR/LF in a http header value)

Added by naruse (Yui NARUSE) over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:82538]

Description

This is a ticket for backport management. The issue was already fixed on trunk.
Let's treat r59693 as a bugfix and backport into stable branches.

Associated revisions

Revision 59693
Added by naruse (Yui NARUSE) over 2 years ago

A HTTP Header value must not contain CR or LF.

Revision 59695
Added by ko1 (Koichi Sasada) over 2 years ago

to_str -> to_s

  • lib/net/http/header.rb (set_field): val can not have to_str.

Revision 48d78028
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 59693,59695: [Backport #13852]

    A HTTP Header value must not contain CR or LF.
    to_str -> to_s

    * lib/net/http/header.rb (set_field): `val` can not have `to_str`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59783
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 59693,59695: [Backport #13852]

A HTTP Header value must not contain CR or LF.
to_str -> to_s

* lib/net/http/header.rb (set_field): `val` can not have `to_str`.

Revision add06009
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 59693,59695: [Backport #13852]

    A HTTP Header value must not contain CR or LF.
    to_str -> to_s

    * lib/net/http/header.rb (set_field): `val` can not have `to_str`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@59797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59797
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 59693,59695: [Backport #13852]

A HTTP Header value must not contain CR or LF.
to_str -> to_s

* lib/net/http/header.rb (set_field): `val` can not have `to_str`.

History

#1

Updated by naruse (Yui NARUSE) over 2 years ago

  • Subject changed from Backport r59693 (Net::HTTP should raise error when CR/LF in a http header value) to Backport r59693,59695 (Net::HTTP should raise error when CR/LF in a http header value)

Updated by nagachika (Tomoyuki Chikanaga) about 2 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r59783 merged revision(s) 59693,59695.

Updated by usa (Usaku NAKAMURA) about 2 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONE to 2.2: DONTNEED, 2.3: DONE, 2.4: DONE

ruby_2_3 r59797 merged revision(s) 59693,59695.

Also available in: Atom PDF