[LON-CAPA-cvs] cvs: rat / lonuserstate.pm
www
lon-capa-cvs@mail.lon-capa.org
Mon, 15 Dec 2003 15:26:26 -0000
www Mon Dec 15 10:26:26 2003 EDT
Modified files:
/rat lonuserstate.pm
Log:
Bug #2498: empty src was turned into directory reference. For 1.1.
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.68 rat/lonuserstate.pm:1.69
--- rat/lonuserstate.pm:1.68 Fri Dec 12 11:38:53 2003
+++ rat/lonuserstate.pm Mon Dec 15 10:26:26 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construct and maintain state and binary representation of course for user
#
-# $Id: lonuserstate.pm,v 1.68 2003/12/12 16:38:53 www Exp $
+# $Id: lonuserstate.pm,v 1.69 2003/12/15 15:26:26 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -163,7 +163,7 @@
} elsif ($turi!~/\.(sequence|page)$/) {
$turi='/adm/coursedocs/showdoc'.$turi;
}
- } else { # normal internal resource
+ } elsif ($turi) { # normal non-empty internal resource
my $mapdir=$uri;
$mapdir=~s/[^\/]+$//;
$turi=&Apache::lonnet::hreflocation($mapdir,$turi);