1
0
Fork 0
flightgear/scripts/python/TerraSync/terrasync
Florent Rougon 692ab6835f terrasync.py: more thorough checking of .dirindex contents
- only accept ASCII-encoded .dirindex files (this is guaranteed to work
  fine "everywhere");

- reject .dirindex files with a 'path' entry that contains a backslash
  or starts with a slash;

- reject .dirindex files with a 'path' entry that contains a '..'
  component;

- reject .dirindex files with an 'f', 'd' or 't' entry whose name field
  contains a slash or a backslash;

- reject .dirindex files with an 'f', 'd' or 't' entry whose name field
  is '..';

- add comment lines (starting with '#') in the sample good .dirindex
  file used by unit tests.
2020-10-03 14:18:29 +02:00
..
__init__.py terrasync.py: more modular code layout 2018-02-07 11:38:41 +01:00
dirindex.py terrasync.py: more thorough checking of .dirindex contents 2020-10-03 14:18:29 +02:00
exceptions.py terrasync.py: user-friendly error message when no 'path' found in .dirindex 2018-02-18 20:22:58 +01:00
main.py terrasync.py: rename DirIndex attributes and remove accessors 2020-10-02 16:38:08 +02:00
virtual_path.py python compatibility: make __ne__ explicit. 2020-10-01 23:06:37 -05:00