Skip to content

Commit 39b915b

Browse files
committed
Weird filenames to toplevel.
1 parent 1c3a2e8 commit 39b915b

16 files changed

+30
-14
lines changed

valid_filenames/" renamed to "

File renamed without changes.

valid_filenames/# renamed to #

File renamed without changes.

valid_filenames/' renamed to '

File renamed without changes.
File renamed without changes.

valid_filenames/.* renamed to .*

File renamed without changes.

valid_filenames/... renamed to ...

File renamed without changes.

3

-1
This file was deleted.
File renamed without changes.

?a=b&c=d

Whitespace-only changes.

README.md

+30-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,37 @@ The most interesting files on this repository are:
3232

3333
- [issue-markdown.md](issue-markdown.md): test the markdown on issues
3434

35-
- whitespace filename edge cases:
35+
- [filename/](filename/): weird stuff and attacks based on the filenames
3636

37-
- [single whitespace filename](%20)
38-
- [double whitespace directory name](%20%20/) and [its README](%20%20/README.md)
39-
- [a b](a b)
37+
The only filenames which are not valid are:
38+
39+
- contain forward slash `/`
40+
- `.git`
41+
- `.` and `..`, but not `...`
42+
43+
Everything else goes:
44+
45+
- [?a=b&c=d](?a=b&c=d)
46+
47+
- ["](")
48+
49+
- ['](')
50+
51+
- [#](#)
52+
53+
- [-start-with-slash](-start-with-slash)
54+
55+
- [<script>](<script>)
56+
57+
- `<script src="data:text;utf8,alert('xss')">`
58+
59+
- [back\slash](back\slash)
60+
61+
- whitespace filename edge cases:
62+
63+
- [single whitespace filename](%20)
64+
- [double whitespace directory name](%20%20/) and [its README](%20%20/README.md)
65+
- [a b](a b)
4066

4167
Interesting branches and tags:
4268

File renamed without changes.

brancha

-1
This file was deleted.
File renamed without changes.

huge_table.md

-3
This file was deleted.
File renamed without changes.

valid_filenames/README.md

-5
This file was deleted.

0 commit comments

Comments
 (0)