Commit bc49e4b
committed
Fix bug in FileHelpers.IsUnderRootDirectory for separator
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.1 parent fb1dbe0 commit bc49e4b
File tree
2 files changed
+7
-3
lines changed- src/LibraryManager.Contracts
- test/LibraryManager.Test
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
0 commit comments