Merge lp:~mterry/snappy/allow-more-dots into lp:~snappy-dev/snappy/snappy-moved-to-github
Proposed by
Michael Terry
on 2015-05-14
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | John Lenton on 2015-05-15 | ||||
| Approved revision: | 458 | ||||
| Merged at revision: | 457 | ||||
| Proposed branch: | lp:~mterry/snappy/allow-more-dots | ||||
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github | ||||
| Diff against target: |
41 lines (+14/-1) 2 files modified
clickdeb/deb.go (+3/-1) clickdeb/deb_test.go (+11/-0) |
||||
| To merge this branch: | bzr merge lp:~mterry/snappy/allow-more-dots | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John Lenton | 2015-05-14 | Approve on 2015-05-14 | |
|
Review via email:
|
|||
Commit Message
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.
Description of the Change
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.
To post a comment you must log in.
lp:~mterry/snappy/allow-more-dots
updated
on 2015-05-15
- 458. By Michael Terry on 2015-05-15
-
Add comment
| Michael Terry (mterry) wrote : | # |
Added comment!


Nice, thank you for this!
One small comment (inline).