[LON-CAPA-cvs] cvs: doc /loncapafiles sanitycheck.piml
harris41
lon-capa-cvs@mail.lon-capa.org
Sat, 17 Aug 2002 18:59:48 -0000
harris41 Sat Aug 17 14:59:48 2002 EDT
Modified files:
/doc/loncapafiles sanitycheck.piml
Log:
BUG 649; stringently check lonDefDomain against invalid entries of
"priv", "uploaded", "adm", "raw", or "userfiles"; this process will
run whenever a filesystem upgrade is performed (and wherever else
sanitycheck.piml is invoked inside loncom/build/Makefile). The namespace
underneath DocumentRoot (currently /home/httpd/html) must be protected
for emergent LON-CAPA functionality.
Index: doc/loncapafiles/sanitycheck.piml
diff -u doc/loncapafiles/sanitycheck.piml:1.4 doc/loncapafiles/sanitycheck.piml:1.5
--- doc/loncapafiles/sanitycheck.piml:1.4 Thu Aug 15 11:41:57 2002
+++ doc/loncapafiles/sanitycheck.piml Sat Aug 17 14:59:48 2002
@@ -3,7 +3,7 @@
<!-- sanitycheck.piml -->
<!-- Scott Harrison -->
-<!-- $Id: sanitycheck.piml,v 1.4 2002/08/15 15:41:57 harris41 Exp $ -->
+<!-- $Id: sanitycheck.piml,v 1.5 2002/08/17 18:59:48 harris41 Exp $ -->
<!--
@@ -50,6 +50,11 @@
$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) {