aspnet / LibraryManager

Other
446 stars 78 forks source link

Fix bug in FileHelpers.IsUnderRootDirectory for separator #757

Closed jimmylewis closed 1 month ago

jimmylewis commented 1 month 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.