summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-03 09:31:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-03 09:31:55 +0000
commit5e279ea0f79250a07948ed6c24731f60e8221543 (patch)
treec7585345940febc8b4f4a1f154a292b0fd3b61a0 /template.c
parent11461ad9c6de62556df79a35ff0c4902e2881f57 (diff)
downloadrsyslog-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/template.c b/template.c
index 75c9ce78..0eea4572 100644
--- a/template.c
+++ b/template.c
@@ -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*/