I've used linelog in 2.x for a while where I set a number of temp VSAs and have in my mod config format="%{MSG1}\n{MSG2}" I see now in 3 that they get escaped. Any thoughts about supporting escape characters in config but not in VSAs. I saw a thread from December 2014 but checking the code in 3.0.10 it seems nothing has made its way into the code. I'm tempted to just comment out the code. But understand the reasons for it being there and unintended consequences. Any thoughts about an effective logging module that supports logging multi line messages?
On 12 Feb 2016, at 22:51, Peter Lambrechtsen <peter@crypt.co.nz> wrote:
I've used linelog in 2.x for a while where I set a number of temp VSAs and have in my mod config format="%{MSG1}\n{MSG2}"
I see now in 3 that they get escaped.
It doesn't look like they get escaped in 3.1.x, we instead use an escape function to escape them only in expansions which seems like the most sensible behaviour. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (2)
-
Arran Cudbard-Bell -
Peter Lambrechtsen