Skip to content

Commit 8b430d6

Browse files
gh-152691: tarfile -- add Windows reserved name section (GH-152701)
1 parent 369ce43 commit 8b430d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/tarfile.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,8 @@ Here is an incomplete list of things to consider:
11951195
* Check filenames against an allow-list of characters
11961196
(to filter out control characters, confusables, foreign path separators,
11971197
and so on).
1198+
* Check for platform-specific filename semantics. For example, on Windows
1199+
some names can have reserved meanings.
11981200
* Check that filenames have expected extensions (discouraging files that
11991201
execute when you “click on them”, or extension-less files like Windows
12001202
special device names).

0 commit comments

Comments
 (0)