From 6b76ba5a53d2728c4cb9bae0d23b0e37c2f429a3 Mon Sep 17 00:00:00 2001 From: Sheldon Rupp Date: Fri, 8 May 2020 19:37:27 +0200 Subject: [PATCH] Don't use get_magic_quotes_gpc anymore. The reason for this is `get_magic_quotes_gpc()` is deprecated in PHP ^7.4.0 and breaks a bunch of applications trying to use this library. Related: https://github.com/SocialiteProviders/Providers/issues/383 --- openid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openid.php b/openid.php index 14e684b..0a8a378 100644 --- a/openid.php +++ b/openid.php @@ -918,7 +918,7 @@ function validate() # wants to verify. stripslashes() should solve that problem, but we can't # use it when magic_quotes is off. $value = $this->data['openid_' . str_replace('.','_',$item)]; - $params['openid.' . $item] = function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ? stripslashes($value) : $value; + $params['openid.' . $item] = $this->data['openid_' . str_replace('.','_',$item)]; }