--- doc/loncapafiles/sanitycheck.piml 2002/08/15 15:41:57 1.4 +++ doc/loncapafiles/sanitycheck.piml 2003/05/27 15:44:32 1.15 @@ -1,9 +1,8 @@ - - + + + + /etc/httpd/conf/loncapa.conf open IN, "<"; @@ -50,6 +127,11 @@ while (<IN>) { $dbug=0; $dbug=1 if $v=~/\W/; $dbug=1 if $v=~/\_/; + # Avoid namespace conflicts under the web server's DocumentRoot. + my @badnames=('raw','userfiles','priv','adm','uploaded'); + foreach my $bad (@badnames) { + $dbug=1 if $v eq $bad; + } } } if ($hbug) { @@ -68,6 +150,7 @@ my $dbug=0; my $sbug=0; my $fbug=0; while (<IN>) { + next if (/^(\#|\s*$)/); if (/\S/) { $rbug=1 if /\r/; my @a=split(/\:/,$_);