Skip to content

Allow trailing spaces in HTTP_X_FORWARDED_FOR (eg NetScaler MPX-15000)#9

Open
timbunce wants to merge 1 commit into
lopnor:masterfrom
timbunce:trailing-spaces-in-x-forwarded-for
Open

Allow trailing spaces in HTTP_X_FORWARDED_FOR (eg NetScaler MPX-15000)#9
timbunce wants to merge 1 commit into
lopnor:masterfrom
timbunce:trailing-spaces-in-x-forwarded-for

Conversation

@timbunce

Copy link
Copy Markdown

We're using a NetScaler MPX-15000 (running NS9.3: Build 59.5.nc)
and it's adding trailing spaces into the X-Forwarded-For header.

This change allows trailing spaces to be ignored.

(It also prevents REMOTE_ADDR from being set to undef if the
HTTP_X_FORWARDED_FOR parsing fails. That seems like a good idea, but
isn't an important change for me.)

We're using a NetScaler MPX-15000 (running NS9.3: Build 59.5.nc)
and it's adding trailing spaces into the X-Forwarded-For header.

This change allows trailing spaces to be ignored.

(It also prevents REMOTE_ADDR from being set to undef if the
HTTP_X_FORWARDED_FOR parsing fails. That seems like a good idea, but
isn't an important change for me.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant