From bb07af1eb7d6301f8826e588614a564f8bb57c24 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 2 Jan 2013 14:44:08 +0000 Subject: [PATCH] Escape log entries in access log (close: #1916) svn path=/icecast/trunk/icecast/; revision=18755 --- src/cfgfile.c | 5 +++++ src/logging.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cfgfile.c b/src/cfgfile.c index 951de99b..ff760fbd 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -698,6 +698,11 @@ static void _parse_mount(xmlDocPtr doc, xmlNodePtr node, current = current->next; } + if (!mount->fallback_mount && (mount->fallback_when_full || mount->fallback_override)) + { + WARN1("Config for mount %s contains fallback options but no fallback mount.", mount->mountname); + } + if(last) last->next = mount; else diff --git a/src/logging.c b/src/logging.c index d616c54d..2313a47d 100644 --- a/src/logging.c +++ b/src/logging.c @@ -159,7 +159,7 @@ void logging_access(client_t *client) user_agent = "-"; log_write_direct (accesslog, - "%s - %s [%s] \"%s\" %d %" PRIu64 " \"%s\" \"%s\" %lu", + "%s - %H [%s] \"%H\" %d %" PRIu64 " \"%H\" \"%H\" %lu", client->con->ip, username, datebuf,