The Un-Official Proxomitron Forum
[Bug] $GET() omits the following semicolon? - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Forum Related (/forumdisplay.php?fid=37)
+--- Forum: Proxomitron Program (/forumdisplay.php?fid=4)
+--- Thread: [Bug] $GET() omits the following semicolon? (/showthread.php?tid=1834)



[Bug] $GET() omits the following semicolon? - whenever - Sep. 13, 2011 03:06 AM

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.


RE: [Bug] $GET() omits the following semicolon? - JJoe - Sep. 13, 2011 04:06 AM

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"