Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed issue #598: Xdebug was checking X-HTTP-FORWARDED-FOR instead of…

… HTTP-X-FORWARDED-FOR.
  • Loading branch information...
commit 747cc91b722c8bc2cdb205a2bdef4d491d80dd1b 1 parent 1835a80
Darren Oh authored September 06, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xdebug_stack.c
2  xdebug_stack.c
@@ -478,7 +478,7 @@ void xdebug_init_debugger(TSRMLS_D)
478 478
 	if (XG(remote_connect_back)) {
479 479
 		zval **remote_addr = NULL;
480 480
 		XDEBUG_LOG_PRINT(XG(remote_log_file), "I: Checking remote connect back address.\n");
481  
-		if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "X_HTTP_FORWARDED_FOR", 21, (void**)&remote_addr) == FAILURE) {
  481
+		if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_X_FORWARDED_FOR", 21, (void**)&remote_addr) == FAILURE) {
482 482
 			zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "REMOTE_ADDR", 12, (void**)&remote_addr);
483 483
 		}
484 484
 		if (remote_addr) {

0 notes on commit 747cc91

Please sign in to comment.
Something went wrong with that request. Please try again.