- Timestamp:
- Apr 6, 2011, 2:31:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_parse_apache.c
r276 r326 152 152 { 153 153 if(strcmp(token, "%r") == 0 || 154 strstr(token, _("{Referer}")) == 0 || 155 strstr(token, _("{User-Agent}")) == 0) 154 strstr(token, _("{Referer}")) != NULL || 155 strstr(token, _("{User-Agent}")) != NULL || 156 strstr(token, _("{X-Forwarded-For}")) != NULL ) 156 157 { 157 158 /* … … 175 176 } 176 177 } 178 else if (token[0] == 'R' && token[1] == 'E' && token[2] == '{' && token[strlen(token)-1] == '}') 179 { 180 char * lb = strchr(token, '{'); 181 char * rb = strrchr(token, '}'); 182 183 if (lb && rb) 184 { 185 ++lb; *rb = '\0'; 186 sh_string_add_from_char(re_string, lb); 187 } 188 } 177 189 else if (token[0] == '%' && token[strlen(token)-1] == 't') 178 190 {
Note:
See TracChangeset
for help on using the changeset viewer.