Skip to content

Commit

Permalink
Fix: preveneted PHP 8.2 deprecated 'FILTER_SANITIZE_STRING'
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuseppeArcifa committed Oct 28, 2024
1 parent 9bbba15 commit 8bb11a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/SSO_AJAX_Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ public function __construct() {
* Handle SSO login attempts.
*/
public function login() {
SSO_Helpers::handleLogin( filter_input( INPUT_GET, 'token', FILTER_SANITIZE_STRING ) );
SSO_Helpers::handleLogin( htmlspecialchars( strip_tags( filter_input( INPUT_GET, 'token' ) ) ) );
}

/**
* Handle legacy SSO login attempts.
*/
public function legacyLogin() {

$nonce = filter_input( INPUT_GET, 'nonce', FILTER_SANITIZE_STRING );
$salt = filter_input( INPUT_GET, 'salt', FILTER_SANITIZE_STRING );
$nonce = htmlspecialchars( strip_tags( filter_input( INPUT_GET, 'nonce' ) ) );
$salt = htmlspecialchars( strip_tags( filter_input( INPUT_GET, 'salt' ) ) );

SSO_Helpers_Legacy::handleLegacyLogin( $nonce, $salt );
}
Expand Down

0 comments on commit 8bb11a5

Please sign in to comment.