ソースを参照

增加漏洞修复

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