Skip to content

Commit

Permalink
Update FileHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
liukuo362573 committed Feb 10, 2022
1 parent 067eb8d commit 025b062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions YiSha.Util/YiSha.Util/FileHelper.cs
Expand Up @@ -306,6 +306,7 @@ public static TData CheckFileExtension(string fileExtension, string allowExtensi
public static string FilterFilePath(string filePath)
{
filePath = filePath.Replace("../", string.Empty);
filePath = filePath.Replace("..", string.Empty);
filePath = filePath.TrimStart('/');
return filePath;
}
Expand Down

0 comments on commit 025b062

Please sign in to comment.