diff options
Diffstat (limited to 'plugins/jetpack/class.jetpack-signature.php')
-rw-r--r-- | plugins/jetpack/class.jetpack-signature.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jetpack/class.jetpack-signature.php b/plugins/jetpack/class.jetpack-signature.php index 559bb299..8d925d7d 100644 --- a/plugins/jetpack/class.jetpack-signature.php +++ b/plugins/jetpack/class.jetpack-signature.php @@ -36,6 +36,10 @@ class Jetpack_Signature { $host_port = isset( $_SERVER['HTTP_X_FORWARDED_PORT'] ) ? $_SERVER['HTTP_X_FORWARDED_PORT'] : $_SERVER['SERVER_PORT']; + /** + * Note: This port logic is tested in the Jetpack_Cxn_Tests->test__server_port_value() test. + * Please update the test if any changes are made in this logic. + */ if ( is_ssl() ) { // 443: Standard Port // 80: Assume we're behind a proxy without X-Forwarded-Port. Hardcoding "80" here means most sites |