diff options
author | Cliff Woolley <jwoolley@apache.org> | 2002-06-15 20:35:14 +0000 |
---|---|---|
committer | Cliff Woolley <jwoolley@apache.org> | 2002-06-15 20:35:14 +0000 |
commit | 4d4c90542bed36f3a431cc6dc5aedf770535482e (patch) | |
tree | 8c6501df6bb0e8c44dba3a71829fde12215dd324 /support/split-logfile.in | |
parent | b900700da3235a5a1bef0815b76d62cd876f66b5 (diff) | |
download | httpd-4d4c90542bed36f3a431cc6dc5aedf770535482e.tar.gz |
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
Diffstat (limited to 'support/split-logfile.in')
-rw-r--r-- | support/split-logfile.in | 5 |
1 files changed, 5 insertions, 0 deletions
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 = <STDIN>) { # $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. # |