Francis Daly
April 03, 2017 11:02AM
On Fri, Mar 24, 2017 at 05:18:23PM -0400, c0nw0nk wrote:

Hi there,

> The cookie name = a MD5 sum the full / complete value of the cookie seems to
> cut of at a plus + symbol

Your regex piece is

(?<session_value>[\w]{1,}+)

which says to match one or more \w characters ({1,}), one or more times (+)

\w is "word character", which is alnum-or-underscore.

> What would the correct regex to be to ignore / remove + symbols from
> "session_value"

If you want to match "word character or plus", use something like [\w+].

And then also probably remove one of "{1,}" and "+", since they mean
the same thing and having both is redundant.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx cookie map regex remove + character

c0nw0nk March 24, 2017 05:18PM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 11:02AM

Re: Nginx cookie map regex remove + character

B.R. via nginx April 03, 2017 11:06AM

Re: Nginx cookie map regex remove + character

Francis Daly April 03, 2017 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready