1 2 3 4 5 6 7 8 9 10 11 12
|
diff -ur simplesamlphp-1.14.11.orig/vendor/simplesamlphp/saml2/src/SAML2/Utils.php simplesamlphp-1.14.11/vendor/simplesamlphp/saml2/src/SAML2/Utils.php
--- simplesamlphp-1.14.11.orig/vendor/simplesamlphp/saml2/src/SAML2/Utils.php 2016-12-02 13:45:13.000000000 +0100
+++ simplesamlphp-1.14.11/vendor/simplesamlphp/saml2/src/SAML2/Utils.php 2018-03-01 20:27:27.195978212 +0100
@@ -691,7 +691,7 @@
$matches = array();
// We use a very strict regex to parse the timestamp.
- $regex = '/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.\\d+)?Z$/D';
+ $regex = '/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.\\d{1,9})?Z$/D';
if (preg_match($regex, $time, $matches) == 0) {
throw new Exception(
'Invalid SAML2 timestamp passed to xsDateTimeToTimestamp: ' . $time
|