From d5425d128b42e32b5a430b1730fa67b697347ff8 Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Sat, 15 Jun 2002 20:35:14 +0000 Subject: [PATCH] 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 --- support/split-logfile.in | 5 +++++ 1 file changed, 5 insertions(+) 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. # -- 2.50.1