From: zn@... Date: 2017-11-02T13:00:59+00:00 Subject: [ruby-core:83646] [Ruby trunk Bug#14075] File.dirname("path without dir".taint) returns untainted string Issue #14075 has been reported by znz (Kazuhiro NISHIYAMA). ---------------------------------------- Bug #14075: File.dirname("path without dir".taint) returns untainted string https://bugs.ruby-lang.org/issues/14075 * Author: znz (Kazuhiro NISHIYAMA) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Is this intentional? ``` % ruby -e 'p [File.dirname("foo/bar".taint).tainted?, File.dirname("hoge".taint).tainted?]' [true, false] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: