mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix CI test failure
This commit is contained in:
parent
71a2f996db
commit
b739bb49d3
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
|
|||
/// <returns></returns>
|
||||
public static bool PathContains(string parentPath, string subPath, bool allowEqual = false)
|
||||
{
|
||||
var rel = Path.GetRelativePath(parentPath, subPath);
|
||||
var rel = Path.GetRelativePath(parentPath.EnsureTrailingSlash(), subPath);
|
||||
return (rel != "." || allowEqual)
|
||||
&& rel != ".."
|
||||
&& !rel.StartsWith("../")
|
||||
|
|
|
|||
Loading…
Reference in a new issue