~snappy-dev/snappy/snappy-moved-to-github

Viewing all changes in revision 457.

  • 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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: