mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 12:29:49 +00:00
detect more invalid dates for efa based providers
This commit is contained in:
parent
95cce1eb4f
commit
82560423c8
1 changed files with 3 additions and 0 deletions
|
@ -1731,8 +1731,11 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
final int year = Integer.parseInt(pp.getAttributeValue(null, "year"));
|
||||
final int month = Integer.parseInt(pp.getAttributeValue(null, "month")) - 1;
|
||||
final int day = Integer.parseInt(pp.getAttributeValue(null, "day"));
|
||||
final int weekday = Integer.parseInt(pp.getAttributeValue(null, "weekday"));
|
||||
XmlPullUtil.next(pp);
|
||||
|
||||
if (weekday < 0)
|
||||
return false;
|
||||
if (year == 0)
|
||||
return false;
|
||||
if (year < 1900 || year > 2100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue