This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/plugins/sg-security/core/Encryption_Service/Encryption_Service.php b/wp-content/plugins/sg-security/core/Encryption_Service/Encryption_Service.php | |
--- a/wp-content/plugins/sg-security/core/Encryption_Service/Encryption_Service.php | |
+++ b/wp-content/plugins/sg-security/core/Encryption_Service/Encryption_Service.php | |
@@ -48,6 +48,10 @@ class Encryption_Service { | |
* @since 1.3.6 | |
*/ | |
public function generate_encryption_file() { | |
+ if ( defined( 'SGS_ENCRYPTION_KEY' ) ) { | |
+ return true; | |
+ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/plugins/sg-security/core/Helper/Helper.php b/wp-content/plugins/sg-security/core/Helper/Helper.php | |
--- a/wp-content/plugins/sg-security/core/Helper/Helper.php | |
+++ b/wp-content/plugins/sg-security/core/Helper/Helper.php | |
@@ -21,11 +21,20 @@ class Helper { | |
public static function get_current_user_ip() { | |
$keys = array( 'REMOTE_ADDR' ); | |
- if ( | |
- defined( 'SGS_HEADER' ) && | |
- SGS_HEADER === 'X-Forwarded-For' |