diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 09:31:55 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 09:31:55 +0000 |
commit | 5e279ea0f79250a07948ed6c24731f60e8221543 (patch) | |
tree | c7585345940febc8b4f4a1f154a292b0fd3b61a0 /template.c | |
parent | 11461ad9c6de62556df79a35ff0c4902e2881f57 (diff) | |
download | rsyslog-5e279ea0f79250a07948ed6c24731f60e8221543.tar.gz rsyslog-5e279ea0f79250a07948ed6c24731f60e8221543.tar.xz rsyslog-5e279ea0f79250a07948ed6c24731f60e8221543.zip |
properties are now case-insensitive everywhere (script, filters, templates)
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -385,7 +385,6 @@ static int do_Constant(unsigned char **pp, struct template *pTpl) if((pTpe = tpeConstruct(pTpl)) == NULL) { /* OK, we are out of luck. Let's invalidate the * entry and that's it. - * TODO: add panic message once we have a mechanism for this */ pTpe->eEntryType = UNDEFINED; return 1; @@ -510,7 +509,8 @@ static int do_Parameter(unsigned char **pp, struct template *pTpl) pTpe->eEntryType = FIELD; while(*p && *p != '%' && *p != ':') { - rsCStrAppendChar(pStrB, *p++); + rsCStrAppendChar(pStrB, tolower(*p)); + ++p; /* do NOT do this in tolower()! */ } /* got the name*/ |