8000 proposed resolution of issue #611 by ar-an-ribe · Pull Request #668 · nginx/nginx · GitHub
[go: up one dir, main page]

Skip to content

proposed resolution of issue #611 #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ar-an-ribe
Copy link

Proposed changes

To fix #611, a small addition has been made to the ngx_http_script_regex_start_code function in src/http/ngx_http_script.c. This addition prevents the ngx_http_script_copy_capture_code function in the same file from performing an unnecessary URI escape that was the origin of the bug in the “test1” case, while continuing to perform an appropriate URI escape in the “test2” case. This addition does not affect the “test3” case, which did not demonstrate the bug because it involved no capture group.

In running the nginx test suite on my system, many tests were skipped, and a failure was reported for proxy_implicit.t due to dying from “too many addresses in localhost”. Since my system’s /etc/hosts file originally came with (and still has) three different lines for localhost (specifying “127.0.0.1”, “::1”, and “fe80::1%lo0” respectively), I believe that the failure of proxy_implicit.t is due to the contents of its /etc/hosts file rather than due to this proposed addition.

If this proposed addition causes regressions on other systems that are capable of running all of the nginx test suite’s tests, I’d appreciate receiving feedback about it.

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.

Regex capture group from $uri in if conditional loses normalization when set to a variable
1 participant
0