Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20fb241d authored by Tanguy Pruvot's avatar Tanguy Pruvot
Browse files

CacheManager: fix issue with expire time set to "now"

Reported by Marc Newman, NASA/JSC/SDIL Primary Systems Analyst
parent 08e49bc7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -731,7 +731,8 @@ public final class CacheManager {
            } catch (IllegalArgumentException ex) {
                // Take care of the special "-1" and "0" cases
                if ("-1".equals(ret.expiresString)
                        || "0".equals(ret.expiresString)) {
                        || "0".equals(ret.expiresString)
                        || "now".equals(ret.expiresString)) {
                    // make it expired, but can be used for history navigation
                    ret.expires = 0;
                } else {