From: Cliff Woolley Date: Sat, 15 Jun 2002 20:35:14 +0000 (+0000) Subject: Forward-port a change from 1.3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5425d128b42e32b5a430b1730fa67b697347ff8;p=apache Forward-port a change from 1.3 Reminded by: Joshua Slive git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95707 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/split-logfile.in b/support/split-logfile.in index 038ce7ce55..492070cf34 100644 --- a/support/split-logfile.in +++ b/support/split-logfile.in @@ -79,6 +79,11 @@ while ($log_line = ) { # $vhost = lc ($vhost) or "access"; # + # if the vhost contains a "/" or "\", it is illegal so just use + # the default log to avoid any security issues due if it is interprted + # as a directory separator. + if ($vhost =~ m#[/\\]#) { $vhost = "access" } + # # If the log file for this virtual host isn't opened # yet, do it now. #