System.Web.StaticFileHandler.ValidFileName C# (CSharp) Method

ValidFileName() static private method

static private ValidFileName ( string fileName ) : bool
fileName string
return bool
		static bool ValidFileName (string fileName)
		{
			if (!RuntimeHelpers.RunningOnWindows)
				return true;

			if (fileName == null || fileName.Length == 0)
				return false;

			return (!StrUtils.EndsWith (fileName, " ") && !StrUtils.EndsWith (fileName, "."));
		}