Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

+13 -1
View File
@@ -36,7 +36,8 @@ if ( isset( \IPS\Request::i()->state ) and $explodedData = explode( '-', \IPS\Re
}
}
}
/* OAuth 2 */
if ( isset( \IPS\Request::i()->access_token ) )
{
foreach ( array( 'access_token', 'token_type', 'expires_in', 'scope', 'state' ) as $k )
@@ -47,6 +48,17 @@ if ( isset( \IPS\Request::i()->state ) and $explodedData = explode( '-', \IPS\Re
}
}
}
/* OAuth 1 */
elseif ( isset( \IPS\Request::i()->oauth_token ) )
{
foreach ( array( 'oauth_token', 'oauth_verifier', 'state' ) as $k )
{
if ( isset( \IPS\Request::i()->$k ) )
{
$destination = $destination->setQueryString( $k, \IPS\Request::i()->$k );
}
}
}
elseif ( isset( \IPS\Request::i()->code ) )
{
$destination = $destination->setQueryString( 'code', \IPS\Request::i()->code );