Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected static function validSAMLAnyURI(string $value, string $message = ''): void |
||
22 | { |
||
23 | parent::validAnyURI($value); |
||
24 | |||
25 | try { |
||
26 | // If it doesn't have a scheme, it's not an absolute URI |
||
27 | parent::regex($value, self::$scheme_regex, $message ?: '%s is not a SAML2-compliant URI'); |
||
28 | } catch (AssertionFailedException $e) { |
||
29 | throw new ProtocolViolationException($e->getMessage()); |
||
30 | } |
||
33 |