Skip to content
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

Httpd: parsing Apache expressions with quoted strings fails #470

Closed
domcleal opened this issue May 26, 2017 · 0 comments
Closed

Httpd: parsing Apache expressions with quoted strings fails #470

domcleal opened this issue May 26, 2017 · 0 comments

Comments

@domcleal
Copy link
Member

The following valid Apache directive fails to parse:

RequestHeader set X-Forwarded-Proto https expr=(%{HTTP:CF-Visitor}='{"scheme":"https"}')

It seems related to the spacing around quoted strings in the end of the expression. Changing it to this works with Augeas, and I think it's probably still valid for Apache (untested):

RequestHeader set X-Forwarded-Proto https expr=(%{HTTP:CF-Visitor} = '{"scheme":"https"}' )

Reported at certbot/certbot#4734

lutter added a commit to lutter/augeas that referenced this issue Sep 27, 2017
* handle '>""' properly
* make space between quoted args optional
* do not get confused by quoted strings in bare arguments

Fixes hercules-team#429
Fixes hercules-team#435
Fixes hercules-team#470
lutter added a commit to lutter/augeas that referenced this issue Sep 27, 2017
* handle '>""' properly
* make space between quoted args optional
* do not get confused by quoted strings in bare arguments

Fixes hercules-team#429
Fixes hercules-team#435
Fixes hercules-team#470
lutter added a commit to lutter/augeas that referenced this issue Sep 27, 2017
* handle '>""' properly
* make space between quoted args optional
* do not get confused by quoted strings in bare arguments

Fixes hercules-team#429
Fixes hercules-team#435
Fixes hercules-team#470
lutter added a commit to lutter/augeas that referenced this issue Sep 29, 2017
* handle '>""' properly
* make space between quoted args optional
* do not get confused by quoted strings in bare arguments

Fixes hercules-team#429
Fixes hercules-team#435
Fixes hercules-team#470
@lutter lutter closed this as completed in e1a8608 Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant