We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a2f99 commit b739bb4Copy full SHA for b739bb4
Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs
@@ -254,7 +254,7 @@ public static string ReturnPreviousDirectoryIfIncompleteString(string path)
254
/// <returns></returns>
255
public static bool PathContains(string parentPath, string subPath, bool allowEqual = false)
256
{
257
- var rel = Path.GetRelativePath(parentPath, subPath);
+ var rel = Path.GetRelativePath(parentPath.EnsureTrailingSlash(), subPath);
258
return (rel != "." || allowEqual)
259
&& rel != ".."
260
&& !rel.StartsWith("../")
0 commit comments