mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
Synchronization code
This commit is contained in:
parent
5c969468b2
commit
ce07a7ff10
@ -68,7 +68,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
if (value.IsContainsIn(";", "--"))
|
||||
if (value.IsContainsIn(";", "--"))
|
||||
{
|
||||
throw new Exception($"{value} format error ");
|
||||
}
|
||||
@ -76,6 +76,15 @@ namespace SqlSugar
|
||||
{
|
||||
throw new Exception($"{value} format error ");
|
||||
}
|
||||
else if (value.ToLower().Contains(" update ")
|
||||
|| value.ToLower().Contains(" delete ")
|
||||
|| value.ToLower().Contains(" drop ")
|
||||
|| value.ToLower().Contains(" alert ")
|
||||
|| value.ToLower().Contains(" create ")
|
||||
|| value.ToLower().Contains(" insert "))
|
||||
{
|
||||
Check.ExceptionEasy($"{value} format error ", value+ "不能存在 空格+【update drop 等】+空格 ");
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user