Commit fc6e5f7
committed
sourceSpecIsNewer: explicit false check on strtotime
Guard against malformed datetime strings (e.g. "0000-00-00 00:00:00")
that PHP's strtotime() returns false for. Without the explicit check,
false gets loose-compared as 0 and the helper silently returns false,
meaning a corrupted source updatedAt would always tolerate the existing
destination entry and never trigger drop+recreate.
Appwrite itself always emits parseable RFC 3339 timestamps, so this is
mainly defensive for non-Appwrite sources (Supabase, NHost, CSV).
Flagged by greptile P2.1 parent 2128f97 commit fc6e5f7
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
| |||
0 commit comments