File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ public function execute(ServerRequestInterface $request = null)
130
130
131
131
// Check if message is signed and if so verify it
132
132
if ($ payload ->isSigned ()) {
133
+
134
+ if (! $ micalg ) {
135
+ $ micalg = $ payload ->getParsedHeader ('content-type ' , 0 , 'micalg ' );
136
+ }
137
+
133
138
$ this ->getLogger ()->debug ('Inbound AS2 message is signed. ' );
134
139
$ this ->getLogger ()->debug (
135
140
sprintf ('The sender used the algorithm "%s" to sign the inbound AS2 message. ' , $ micalg )
@@ -144,9 +149,6 @@ public function execute(ServerRequestInterface $request = null)
144
149
$ this ->getLogger ()->debug (sprintf ('Found %s payload attachments in the inbound AS2 message. ' ,
145
150
$ payload ->getCountParts () - 1 ));
146
151
147
- if (! $ micalg ) {
148
- $ micalg = $ payload ->getParsedHeader ('content-type ' , 0 , 'micalg ' );
149
- }
150
152
foreach ($ payload ->getParts () as $ part ) {
151
153
if (! $ part ->isPkc7Signature ()) {
152
154
$ payload = $ part ;
You can’t perform that action at this time.
0 commit comments