fix stripos call

isekai
Gassan Gousseinov 6 years ago
parent 42402b69b5
commit 11e89fd9b2

@ -45,7 +45,7 @@ class OpenID_Connect_Generic_Client {
*/ */
function make_authentication_url() { function make_authentication_url() {
$separator = '?'; $separator = '?';
if ( stripos( $this->endpoint_login, '?' !== FALSE ) ) { if ( stripos( $this->endpoint_login, '?' ) !== FALSE ) {
$separator = '&'; $separator = '&';
} }
$url = sprintf( '%1$s%2$sresponse_type=code&scope=%3$s&client_id=%4$s&state=%5$s&redirect_uri=%6$s', $url = sprintf( '%1$s%2$sresponse_type=code&scope=%3$s&client_id=%4$s&state=%5$s&redirect_uri=%6$s',

Loading…
Cancel
Save