Diff for /doc/loncapafiles/sanitycheck.piml between versions 1.22 and 1.23

version 1.22, 2006/12/10 23:23:55 version 1.23, 2007/04/13 18:37:27
Line 120  while (<IN>) { Line 120  while (<IN>) {
  if (/PerlSetVar\s+lonHostID\s+(\S+)/) {   if (/PerlSetVar\s+lonHostID\s+(\S+)/) {
   my $v=$1;    my $v=$1;
   $hbug=0;    $hbug=0;
   $hbug=1 if $v=~/\W/;    $hbug=1 if $v=~/[^\w.\-]/;
   $hbug=1 if $v=~/\_/;    $hbug=1 if $v=~/_/;
  }   }
  if (/PerlSetVar\s+lonDefDomain\s+(\S+)/) {   if (/PerlSetVar\s+lonDefDomain\s+(\S+)/) {
   my $v=$1;    my $v=$1;
   $dbug=0;    $dbug=0;
   $dbug=1 if $v=~/\W/;    $dbug=1 if $v=~/[^\w.\-]/;
   $dbug=1 if $v=~/\_/;    $dbug=1 if $v=~/_/;
   # Avoid namespace conflicts under the web server's DocumentRoot.    # Avoid namespace conflicts under the web server's DocumentRoot.
   my @badnames=('raw','userfiles','priv','adm','uploaded');    my @badnames=('raw','userfiles','priv','adm','uploaded');
   foreach my $bad (@badnames) {    foreach my $bad (@badnames) {
Line 152  my $sbug=0; Line 152  my $sbug=0;
 my $fbug=0;  my $fbug=0;
 my %line;  my %line;
 my $line=0;  my $line=0;
 while (<IN>) {  while (my $l = <IN>) {
  $line++;   $line++;
  next if (/^(\#|\s*$)/);   next if ($l=~/^(\#|\s*$)/);
  if (/\S/) {   if ($l=~/^\^/) {
   if (/\r/) {              $rbug=1; push(@{$line{'r'}},$line); }    if ($l !~ /^\^[\w.\-]/) {
   my @a=split(/\:/,$_);      $dns_bug = 1;
       push(@{$line{'dns'}},$line);
     }
    } elsif ($l=~/\S/) {
     if ($l=~/\r/) {              $rbug=1; push(@{$line{'r'}},$line); }
     my @a=split(/:/,$l);
   if ($a[0]=~/[^\w\-.]/ ||    if ($a[0]=~/[^\w\-.]/ ||
       $a[1]=~/[^\w\-.]/ ||        $a[1]=~/[^\w\-.]/ ||
       $a[0]=~/\_/       ||        $a[0]=~/\_/       ||
Line 184  if ($fbug) { Line 189  if ($fbug) {
 if ($sbug) {  if ($sbug) {
   print "**** ERROR **** <TARGET /> has illegal whitespace character (lines ".join(', ',@{$line{'s'}}).")\n";    print "**** ERROR **** <TARGET /> has illegal whitespace character (lines ".join(', ',@{$line{'s'}}).")\n";
 }  }
   if ($dns_bug) {
     print "**** ERROR **** <TARGET /> host.tab server entry has characters (lines ".join(', ',@{$line{'dns'}}).")\n";
   }
 </file>  </file>
 <file>  <file>
 <target dist='default'>/home/httpd/lonTabs/spare.tab</target>  <target dist='default'>/home/httpd/lonTabs/spare.tab</target>

Removed from v.1.22  
changed lines
  Added in v.1.23


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>