Removed usage of obsoleted FileSecurityException

This commit is contained in:
Ronald Barendse
2019-10-06 11:32:37 +02:00
parent dc5cdfd3d1
commit af1615bbb7
6 changed files with 17 additions and 14 deletions

View File

@@ -314,7 +314,7 @@ namespace Umbraco.Core.IO
// nothing prevents us to reach the file, security-wise, yet it is outside
// this filesystem's root - throw
throw new FileSecurityException("File '" + opath + "' is outside this filesystem's root.");
throw new UnauthorizedAccessException("File '" + opath + "' is outside this filesystem's root.");
}
/// <summary>