mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Check for asterisk range in CronExpression
This commit makes sure that in CronExpression, the asterisk is only used in a range field, and is not surrounded by unexpected characters. Closes gh-19500
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ final class BitsCronField extends CronField {
|
||||
}
|
||||
|
||||
private static ValueRange parseRange(String value, Type type) {
|
||||
if (value.indexOf('*') != -1) {
|
||||
if (value.equals("*")) {
|
||||
return type.range();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user