-
Committer:
Snappy Tarmac
-
Author(s):
Michael Terry
-
Date:
2015-05-15 15:11:56 UTC
-
mfrom:
(456.1.2 snappy)
-
Revision ID:
snappy_tarmac-20150515151156-07suw4hq7z6b4wep
Allow ".." in file paths as long as it isn't an entire element. (i.e. allow "hello..you" or "...")
We call filepath.Clean right before our ".." check. So the only instances of ".." will be in the first element. That lets us simplify the check a lot. by mterry approved by chipaca