Welcome! Log In Create A New Profile

Advanced

Literal dollar signs in values

Anonymous User
April 20, 2021 10:18PM
Hi,

I can't find an existing bug on this, and don't have a recent version
handy to test on, so I'm asking here first: Is it still impossible to
insert a literal dollar symbol in a config value?

I was debugging nested location config with a statement like so:

return 200 'loc /foo/bar/ \.xyz$ $uri';

This caused an "[emerg] invalid variable name" error when testing the
config. Apparently a known issue that's documented at
https://github.com/openresty/nginx-tutorials/blob/9f7242b60f9f95bd840ec54388f83a17e3407ee3/en/01-NginxVariables01.tut#L93
but the workaround is very hacky.

If this is not resolved already, could this be done in a
backwards-compatible manner by nginx interpreting "$$" as a literal "$"?

Regards,
Roy.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Literal dollar signs in values

Anonymous User 79 April 20, 2021 10:18PM

Re: Literal dollar signs in values

Maxim Dounin 21 April 21, 2021 09:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready