Skip to content

Commit 666380d

Browse files
committed
Use 'Passive' as the string to identify passive mode
1 parent 3424592 commit 666380d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function saml_acs() {
246246
if (!empty($errors)) {
247247
// Don't raise an error on passive mode
248248
$errorReason = $auth->getLastErrorReason();
249-
if (strpos($errorReason, 'Responder') != false && strpos($errorReason, 'NoPassive') !== false ) {
249+
if (strpos($errorReason, 'Responder') != false && strpos($errorReason, 'Passive') !== false ) {
250250
$relayState = esc_url_raw( $_REQUEST['RelayState'], ['https','http']);
251251

252252
if (empty($relayState)) {
@@ -259,8 +259,8 @@ function saml_acs() {
259259
} else {
260260
redirect_to_relaystate_if_trusted($relayState);
261261
}
262-
exit();
263262
}
263+
exit();
264264
}
265265

266266
echo '<br>'.__("There was at least one error processing the SAML Response").': ';

0 commit comments

Comments
 (0)