Post Reply 
[Bug] $GET() omits the following semicolon?
Sep. 13, 2011, 03:06 AM
Post: #1
[Bug] $GET() omits the following semicolon?
Code:
[Patterns]
Name = "$GET() Test"
Active = FALSE
Limit = 256
Match = "foobar$SET(var=test)"
Replace = "$GET(var);"

When tested with the string "foobar", the semicolon is omitted from the replacement result.
Add Thank You Quote this message in a reply
Sep. 13, 2011, 04:06 AM
Post: #2
RE: [Bug] $GET() omits the following semicolon?
I think I first noticed this while creating a cookie header filter routine years ago.

Possible workarounds:

Code:
[Patterns]
Name = "$GET(); workaround 1"
Active = FALSE
Limit = 256
Match = "foobar$SET(var=test)"
Replace = "$GET(var)\;"

Name = "$GET(); workaround 2"
Active = FALSE
Limit = 256
Match = "foobar$SET(var=test)"
Replace = "$GET(var)"
          ";"

Name = "$GET(); workaround 3"
Active = FALSE
Limit = 256
Match = "foobar$SET(var=test)$SET(1=;)"
Replace = "$GET(var)\1"
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: