diff --git a/YiSha.Util/YiSha.Util/FileHelper.cs b/YiSha.Util/YiSha.Util/FileHelper.cs index 1b3da2f6..5d75d619 100644 --- a/YiSha.Util/YiSha.Util/FileHelper.cs +++ b/YiSha.Util/YiSha.Util/FileHelper.cs @@ -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; }