mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-10 21:38:04 -05:00
Make sure to parse large numbers
This commit is contained in:
parent
a7a2993c44
commit
41eb392390
@ -36,16 +36,16 @@ public class License implements Serializable {
|
|||||||
|
|
||||||
private byte[] bytes;
|
private byte[] bytes;
|
||||||
|
|
||||||
private int id;
|
private long id;
|
||||||
private long expires;
|
private long expires;
|
||||||
|
|
||||||
public License(byte[] bytes) throws Exception {
|
public License(byte[] bytes) throws Exception {
|
||||||
this.bytes = bytes;
|
this.bytes = bytes;
|
||||||
|
|
||||||
// verify and get clear sign content
|
// verify and get clear signed content
|
||||||
Map<String, String> properties = getProperties();
|
Map<String, String> properties = getProperties();
|
||||||
|
|
||||||
this.id = Integer.parseInt(properties.get("Order"));
|
this.id = Long.parseLong(properties.get("Order"));
|
||||||
this.expires = LocalDate.parse(properties.get("Valid-Until"), DateTimeFormatter.ISO_LOCAL_DATE).atStartOfDay(ZoneOffset.UTC).plusDays(1).minusSeconds(1).toInstant().toEpochMilli();
|
this.expires = LocalDate.parse(properties.get("Valid-Until"), DateTimeFormatter.ISO_LOCAL_DATE).atStartOfDay(ZoneOffset.UTC).plusDays(1).minusSeconds(1).toInstant().toEpochMilli();
|
||||||
|
|
||||||
// verify license online
|
// verify license online
|
||||||
|
Loading…
Reference in New Issue
Block a user