mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
Compare commits
4 Commits
92e6fc70b8
...
dccde19433
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dccde19433 | ||
|
|
a6bcebb62b | ||
|
|
1cb262daa3 | ||
|
|
990f749912 |
@@ -29,7 +29,7 @@ http {
|
||||
}
|
||||
|
||||
# 避免actuator暴露
|
||||
if ($request_uri ~ "/actuator") {
|
||||
if ($uri ~ "/actuator") {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,8 @@ public class JobInvokeUtil
|
||||
*/
|
||||
public static boolean isValidClassName(String invokeTarget)
|
||||
{
|
||||
return StringUtils.countMatches(invokeTarget, ".") > 1;
|
||||
String beanName = StringUtils.substringBefore(invokeTarget, "(");
|
||||
return Pattern.matches("(\\w+\\.){2,}\\w+", beanName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user