File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -479,6 +479,11 @@ class Constants extends \SimpleSAML\XMLSecurity\Constants
479479 */
480480 public const string ACTION_GHPP = 'urn:oasis:names:tc:SAML:1.0:action:ghpp ' ;
481481
482+ /**
483+ * Unix file permissions
484+ */
485+ public const string ACTION_UNIX = 'urn:oasis:names:tc:SAML:1.0:action:unix ' ;
486+
482487 /**
483488 * Sent when the principal wishes to terminate the indicated session
484489 */
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ public function __construct(
5959 array_column (GHPPEnum::cases (), 'value ' ),
6060 ProtocolViolationException::class,
6161 );
62+ } elseif ($ namespace ->equals (C::ACTION_UNIX )) {
63+ Assert::regex (
64+ $ content ->getValue (),
65+ '/^[0-7]{4}$/ ' ,
66+ ProtocolViolationException::class,
67+ );
6268 }
6369
6470 $ this ->setContent ($ content );
You can’t perform that action at this time.
0 commit comments