]> granicus.if.org Git - apache/commitdiff
Forward-port a change from 1.3
authorCliff Woolley <jwoolley@apache.org>
Sat, 15 Jun 2002 20:35:14 +0000 (20:35 +0000)
committerCliff Woolley <jwoolley@apache.org>
Sat, 15 Jun 2002 20:35:14 +0000 (20:35 +0000)
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

index 038ce7ce55db8547b1f3a498fd09d936a994cc16..492070cf34497e941d524075c6e5211f9768b9d7 100644 (file)
@@ -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.
     #