--- loncom/lond 2005/10/14 19:08:31 1.300 +++ loncom/lond 2006/01/17 21:00:00 1.305 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.300 2005/10/14 19:08:31 albertel Exp $ +# $Id: lond,v 1.305 2006/01/17 21:00:00 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.300 $'; #' stupid emacs +my $VERSION='$Revision: 1.305 $'; #' stupid emacs my $remoteVERSION; my $currenthostid="default"; my $currentdomainid; @@ -1422,7 +1422,7 @@ sub ls_handler { open(FILE, $ulsdir.'/'.$ulsfn.".meta"); my @obsolete=; foreach my $obsolete (@obsolete) { - if($obsolete =~ m|()(on)|) { $obs = 1; } + if($obsolete =~ m/()(on|1)/) { $obs = 1; } if($obsolete =~ m|()(default)|) { $rights = 1; } } } @@ -1490,7 +1490,7 @@ sub ls2_handler { open(FILE, $ulsdir.'/'.$ulsfn.".meta"); my @obsolete=; foreach my $obsolete (@obsolete) { - if($obsolete =~ m|()(on)|) { $obs = 1; } + if($obsolete =~ m/()(on|1)/) { $obs = 1; } if($obsolete =~ m|()(default)|) { $rights = 1; } @@ -1978,6 +1978,7 @@ sub update_resource_handler { new Cache::Memcached({'servers'=>['127.0.0.1:11211']}); my $url=$fname; $url=~s-^/home/httpd/html--; + $url=~s-\.meta$--; my $id=&escape('meta:'.$url); $memcache->delete($id); } @@ -3594,11 +3595,9 @@ sub dump_dcmail_handler { if ($hashref) { while (my ($key,$value) = each(%$hashref)) { my $match = 1; - my ($timestamp,$subj,$uname,$udom) = split(/:/,&unescape($key),5); - $timestamp = &unescape($timestamp); + my ($timestamp,$subj,$uname,$udom) = + split(/:/,&unescape(&unescape($key)),5); # yes, twice really $subj = &unescape($subj); - $uname = &unescape($uname); - $udom = &unescape($udom); unless ($startfilter eq '.' || !defined($startfilter)) { if ($timestamp < $startfilter) { $match = 0;