We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f38f8 commit 006a1e1Copy full SHA for 006a1e1
src/Request/Request.php
@@ -38,7 +38,7 @@ public function validate() {
38
39
private function validateTimestamp() {
40
$now = new DateTime;
41
- $differenceInSeconds = $now->getTimestamp() - $this->timestamp;
+ $differenceInSeconds = $now->getTimestamp() - $this->timestamp->getTimestamp();
42
43
if ($differenceInSeconds > self::TIMESTAMP_VALID_TOLERANCE_SECONDS) {
44
throw new InvalidArgumentException('Request timestamp was too old. Possible replay attack.');
0 commit comments