[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

www lon-capa-cvs@mail.lon-capa.org
Wed, 22 Oct 2003 18:29:29 -0000


www		Wed Oct 22 14:29:29 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  No more access violations when accessing versioned resource directly from NAV
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.430 loncom/lonnet/perl/lonnet.pm:1.431
--- loncom/lonnet/perl/lonnet.pm:1.430	Sun Oct 12 18:02:44 2003
+++ loncom/lonnet/perl/lonnet.pm	Wed Oct 22 14:29:28 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.430 2003/10/12 22:02:44 www Exp $
+# $Id: lonnet.pm,v 1.431 2003/10/22 18:29:28 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4037,17 +4037,18 @@
 
 sub symbverify {
     my ($symb,$thisfn)=@_;
-    $thisfn=&declutter($thisfn);
+    $thisfn=&symbclean(&declutter($thisfn));
 # direct jump to resource in page or to a sequence - will construct own symbs
     if ($thisfn=~/\.(page|sequence)$/) { return 1; }
 # check URL part
     my ($map,$resid,$url)=&decode_symb($symb);
-    unless (&symbclean($url) eq &symbclean($thisfn)) { return 0; }
+    unless ($url eq $thisfn) { return 0; }
 
     $symb=&symbclean($symb);
 
     my %bighash;
     my $okay=0;
+
     if (tie(%bighash,'GDBM_File',$ENV{'request.course.fn'}.'.db',
                             &GDBM_READER(),0640)) {
         my $ids=$bighash{'ids_'.&clutter($thisfn)};