Fix bug #131 - Missing escape handling for # in config files.

Added support for escaping stuff in the configuration file parser.
This commit is contained in:
Jan Vidar Krey
2010-05-25 19:35:00 +02:00
parent c70119870a
commit 44860c8477
5 changed files with 55 additions and 12 deletions

View File

@@ -85,11 +85,8 @@ static int config_parse_line(char* line, int line_count, void* ptr_data)
char* data;
struct hub_config* config = (struct hub_config*) ptr_data;
if ((pos = strchr(line, '#')) != NULL)
{
pos[0] = 0;
}
strip_off_ini_line_comments(line, line_count);
if (!*line) return 0;
LOG_DUMP("config_parse_line(): '%s'", line);