Issue #9976 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

Backported into `ruby_2_1` branch at r47346.

----------------------------------------
Bug #9976: ENV doesn't raise SecurityError except for aset and delete
https://bugs.ruby-lang.org/issues/9976#change-48603

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: trunk
* Backport: 2.0.0: REQUIRED, 2.1: DONE
----------------------------------------
`ENV#[]=` と `ENV#delete` は`$SAFE > 0`のときにtaintedな引数をエラーにしますが、他のメソッドでエラーになりません。



-- 
https://bugs.ruby-lang.org/