Feature #7401

Pathname#cleanpath default consider_symlink to true

Added by Zachary Scott over 1 year ago. Updated about 1 year ago.

Assignee:Akira Tanaka
Target version:next minor


from github: https://github.com/ruby/ruby/pull/213

((Pathname#cleanpath is a purely lexical cleanup of a unix path, to remove
useless syntax and return an equivalent path. However, the current default
algorithm makes choices that can return semantically different paths.

((This patch sets the default algorithm to the safe alternative, guaranteeing the
return of a semantically identical path. The unsafe/aggressive algorithm
remains and can be enabled where appropriate.

pathname_cleanpath_default_consider_symlink_true.patch Magnifier (1.9 KB) Zachary Scott, 11/19/2012 01:15 PM


#1 Updated by Yusuke Endoh over 1 year ago

  • Status changed from Open to Assigned
  • Target version changed from 2.0.0 to next minor

#2 Updated by Akira Tanaka about 1 year ago

  • Status changed from Assigned to Rejected

I reject this issue because it is incompatible.
Also, I feel the conservative algorithm is not so useful because it cannot remove .. from foo/../bar.

Also available in: Atom PDF