Even though this question is seven months old, here's an answer in case anyone else comes across a situation like this.
Regarding the security part of the question, by default relaxedUrlToFileSystemMapping
is set to false, and ASP .NET assumes that the path portion of a URL is a valid NTFS file path. If you disable this by setting relaxedUrlToFileSystemMapping
to true, then you are potentially opening your site up to attack because you're disabling the default protection provided by ASP .NET.
If you absolutely need to set relaxedUrlToFileSystemMapping
to true you should also be sure that you validate all URLs within the constraints of your application's requirements.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…