摘要: 代码如下View Code 1 class ReSql { 2 #region 防sql注入重写sql语句//出自http://www.cnblogs.com/ahjesus 尊重作者辛苦劳动成果,转载请注明出处,谢谢! 3 public string RewriteSql(string sql) { 4 sql = Regex.Replace(sql, @"\s+", " "); 5 string[] sqlArr = sql.Replace("where", "拆").Split('拆'); 6 阅读全文
posted @ 2012-11-27 13:46 深海大虾 阅读(715) 评论(0) 推荐(0) 编辑