Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Invalid Path Problem


----- Ursprungligt meddelande -----
> oh:
> 
> if (isWindows) {
> 			// Space or period at end of file name is ignored by Windows.
> 			// Treat this as a bad path for now. We may want to handle
> 			// this as case insensitivity in the future.
> 
> ... but this is only true in explorer, but not filesystem wise, is
> it?

It is the file system that ignores spaces and periods at the end of
file.

The check was introduced as part of checking for really really
bad names and the comments suggest we could handle it differently, but
no voices was raised against this. The important change was with regard
to security issues, but I added checks for names that the file system
could not reproduce too. E.g. if you create the file "a." in windows,
it will create the file "a", without the dot.

-- robin


Back to the top