From 6e71d6e27a13033dda8866ed3a93caa3fc09f6a8 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 13 Dec 2007 07:26:55 +0000 Subject: [PATCH] Utilities: Use parseSAML2Time instead of strtotime to parse SAML2 timestamps. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@92 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Utilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index 3cf6ee6e5..06fb495a9 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -85,14 +85,14 @@ class SimpleSAML_Utilities { $currentTime = time(); if (! empty($start)) { - $startTime = strtotime($start); + $startTime = self::parseSAML2Time($start); /* Allow for a 10 minute difference in Time */ if (($startTime < 0) || (($startTime - 600) > $currentTime)) { return FALSE; } } if (! empty($end)) { - $endTime = strtotime($end); + $endTime = self::parseSAML2Time($end); if (($endTime < 0) || ($endTime <= $currentTime)) { return FALSE; } -- GitLab