Project

General

Profile

Actions

Bug #14075

closed

File.dirname("path without dir".taint) returns untainted string

Added by znz (Kazuhiro NISHIYAMA) about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:83646]

Description

Is this intentional?

% ruby -e 'p [File.dirname("foo/bar".taint).tainted?, File.dirname("hoge".taint).tainted?]'
[true, false]
Actions

Also available in: Atom PDF

Like0
Like0Like0