File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
modules/saml/src/Controller Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1616use Symfony \Component \HttpFoundation \Request ;
1717use Symfony \Component \HttpFoundation \Response ;
1818
19- use function strpos ;
20- use function strrpos ;
21- use function substr ;
22-
2319/**
2420 * Controller class for the IdP metadata.
2521 *
@@ -104,14 +100,6 @@ public function metadata(Request $request): Response
104100 // sign the metadata if enabled
105101 $ metaxml = SSPMetadata \Signer::sign ($ metaxml , $ metaArray , 'SAML 2 IdP ' );
106102
107- // make sure to export only the md:EntityDescriptor
108- $ i = strpos ($ metaxml , '<md:EntityDescriptor ' );
109- $ metaxml = substr ($ metaxml , $ i ? $ i : 0 );
110-
111- // 22 = strlen('</md:EntityDescriptor>')
112- $ i = strrpos ($ metaxml , '</md:EntityDescriptor> ' );
113- $ metaxml = substr ($ metaxml , 0 , $ i ? $ i + 22 : 0 );
114-
115103 $ response = new Response ();
116104 $ response ->setEtag (hash ('sha256 ' , $ metaxml ));
117105 $ response ->setPublic ();
You can’t perform that action at this time.
0 commit comments