Commit 4791e31
committed
further testing of
This is to see if anything should be done to more effectively
prevent paths containing `.git` (icase).
In conclusion, I think it's fine to keep allowing it as none
of the component-validations really kicks in on Linux if backslashes
are used as path separator. Thus, `.git` shouldn't be more special than
`..` for example.
The only way to fix this on Linux would be to either enable Windows protections,
or to disallow `\` as path seprator by default which seems too limitting.
Windows Users will naturally be protected as path-splitting will turn
these into components, with each of them checked as normal..git path variants1 parent f3edaa3 commit 4791e31
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
| |||
0 commit comments