Skip to content

Commit 0c9944a

Browse files
Added precondition checking in resumeProcessing (#1906)
1 parent 0d262a1 commit 0c9944a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SimpleSAML/Auth/ProcessingChain.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ public static function resumeProcessing(array $state): Response
240240
while (count($state[self::FILTERS_INDEX]) > 0) {
241241
$filter = array_shift($state[self::FILTERS_INDEX]);
242242
try {
243-
$filter->process($state);
243+
if ($filter->checkPrecondition($state) === true) {
244+
$filter->process($state);
245+
}
244246
} catch (Error\Exception $e) {
245247
State::throwException($state, $e);
246248
} catch (Exception $e) {

0 commit comments

Comments
 (0)