Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… HTTP-X-FORWARDED-FOR.
  • Loading branch information...
commit 747cc91b722c8bc2cdb205a2bdef4d491d80dd1b 1 parent 1835a80
@darrenoh darrenoh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xdebug_stack.c
View
2  xdebug_stack.c
@@ -478,7 +478,7 @@ void xdebug_init_debugger(TSRMLS_D)
if (XG(remote_connect_back)) {
zval **remote_addr = NULL;
XDEBUG_LOG_PRINT(XG(remote_log_file), "I: Checking remote connect back address.\n");
- if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "X_HTTP_FORWARDED_FOR", 21, (void**)&remote_addr) == FAILURE) {
+ if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_X_FORWARDED_FOR", 21, (void**)&remote_addr) == FAILURE) {
zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "REMOTE_ADDR", 12, (void**)&remote_addr);
}
if (remote_addr) {
Please sign in to comment.
Something went wrong with that request. Please try again.