Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
sts网站
Commits
3980b2f2
Commit
3980b2f2
authored
Jan 14, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务屏蔽违规的字符
parent
bed9fcea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Constants.java
...on/src/main/java/com/ruoyi/common/constant/Constants.java
+1
-1
SysJobController.java
...in/java/com/ruoyi/quartz/controller/SysJobController.java
+1
-1
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
View file @
3980b2f2
...
@@ -163,5 +163,5 @@ public class Constants
...
@@ -163,5 +163,5 @@ public class Constants
* 定时任务违规的字符
* 定时任务违规的字符
*/
*/
public
static
final
String
[]
JOB_ERROR_STR
=
{
"java.net.URL"
,
"javax.naming.InitialContext"
,
"org.yaml.snakeyaml"
,
public
static
final
String
[]
JOB_ERROR_STR
=
{
"java.net.URL"
,
"javax.naming.InitialContext"
,
"org.yaml.snakeyaml"
,
"org.springframework"
,
"org.apache"
};
"org.springframework"
,
"org.apache"
,
"com.ruoyi.common.utils.file"
};
}
}
ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java
View file @
3980b2f2
...
@@ -92,7 +92,7 @@ public class SysJobController extends BaseController
...
@@ -92,7 +92,7 @@ public class SysJobController extends BaseController
}
}
else
if
(
StringUtils
.
containsAnyIgnoreCase
(
job
.
getInvokeTarget
(),
new
String
[]
{
Constants
.
LOOKUP_LDAP
,
Constants
.
LOOKUP_LDAPS
}))
else
if
(
StringUtils
.
containsAnyIgnoreCase
(
job
.
getInvokeTarget
(),
new
String
[]
{
Constants
.
LOOKUP_LDAP
,
Constants
.
LOOKUP_LDAPS
}))
{
{
return
error
(
"新增任务'"
+
job
.
getJobName
()
+
"'失败,目标字符串不允许'ldap'调用"
);
return
error
(
"新增任务'"
+
job
.
getJobName
()
+
"'失败,目标字符串不允许'ldap
(s)
'调用"
);
}
}
else
if
(
StringUtils
.
containsAnyIgnoreCase
(
job
.
getInvokeTarget
(),
new
String
[]
{
Constants
.
HTTP
,
Constants
.
HTTPS
}))
else
if
(
StringUtils
.
containsAnyIgnoreCase
(
job
.
getInvokeTarget
(),
new
String
[]
{
Constants
.
HTTP
,
Constants
.
HTTPS
}))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment