Skip to content

Commit

Permalink
Merge pull request #3976 from kmuralidaran/bugfix/DNN-40416
Browse files Browse the repository at this point in the history
Fix for issue Newly created sub-folder not shown if the parent folder…
  • Loading branch information
valadas authored Sep 27, 2020
2 parents d8e1906 + f1f291d commit 9ebc627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DNN Platform/Library/Common/Utilities/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public virtual string RemoveTrailingSlash(string source)
}

/// <summary>
/// Strips the original path by removing starting 0 or 0\\.
/// Strips the original path by removing starting 0\\.
/// </summary>
/// <param name="originalPath">The original path.</param>
/// <returns>The stripped path.</returns>
Expand All @@ -235,7 +235,7 @@ public virtual string StripFolderPath(string originalPath)
return FolderPathRx.Replace(originalPath, string.Empty);
}

return originalPath.StartsWith("0") ? originalPath.Substring(1) : originalPath;
return originalPath;
}

internal string GetUserFolderPathElementInternal(int userId, UserFolderElement mode)
Expand Down

0 comments on commit 9ebc627

Please sign in to comment.