/// <summary> /// 检测上传参数中是否有非法SQL字符(get、post) /// </summary> /// <returns></returns> public static bool ValidatorURL() { NameValueCollection nameOfVal = GetRequestParameters(HttpContext.Current.Request, ""); foreach (string item in nameOfVal.AllKeys) { if (!StringValidate.CheckSQLWord(nameOfVal[item])) { return(false); } } return(true); }