ソースを参照

增加漏洞修复

duhongyu 4 年 前
コミット
6152af9d6b
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/App_Start/SqlErrorAttribute.cs

+ 4 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/App_Start/SqlErrorAttribute.cs

165
             if (s.Contains("create")) { i++; message += (s1 + "create,"); };
165
             if (s.Contains("create")) { i++; message += (s1 + "create,"); };
166
             if (s.Contains("%")) { i++; message += (s1 + "%,"); };
166
             if (s.Contains("%")) { i++; message += (s1 + "%,"); };
167
             if (s.Contains("--")) { i++; message += (s1 + "--,"); };
167
             if (s.Contains("--")) { i++; message += (s1 + "--,"); };
168
+            if (s.Contains("”")) { i++; message += (s1 + "”,"); };
169
+            if (s.Contains("<>")) { i++; message += (s1 + "<>,"); };
168
             if (s.Contains("_")) { i++; message += (s1 + "_,"); };
170
             if (s.Contains("_")) { i++; message += (s1 + "_,"); };
171
+            if (s.Contains("&")) { i++; message += (s1 + "&,"); };
172
+            if (s.Contains(" *")) { i++; message += (s1 + " *,"); };
169
             if (s.Contains("convert")) { i++; message += (s1 + "convert,"); };
173
             if (s.Contains("convert")) { i++; message += (s1 + "convert,"); };
170
             if (s.Contains("@version")) { i++; message += (s1 + "@version,"); };
174
             if (s.Contains("@version")) { i++; message += (s1 + "@version,"); };
171
             if (i > 0)
175
             if (i > 0)