aspnet / LibraryManager

MIT License
457 stars 83 forks source link

Fix bug in FileHelpers.IsUnderRootDirectory for separator #757

Closed jimmylewis closed 5 months ago

jimmylewis commented 5 months ago

The logic had a flaw that it didn't verify the directory separator after the directory portion. NormalizePath strips trailing slashes, so there will never be one. However, for IsUnderRootDirectory, there must be a separator in the path.