[LON-CAPA-cvs] cvs: rat / lonambiguous.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 20 Dec 2004 20:13:52 -0000


albertel		Mon Dec 20 15:13:52 2004 EDT

  Modified files:              
    /rat	lonambiguous.pm 
  Log:
  - don't disambiguate when it's nec just go to navmaps
  
  
Index: rat/lonambiguous.pm
diff -u rat/lonambiguous.pm:1.12 rat/lonambiguous.pm:1.13
--- rat/lonambiguous.pm:1.12	Mon Dec 20 15:13:03 2004
+++ rat/lonambiguous.pm	Mon Dec 20 15:13:52 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to resolve ambiguous file locations
 #
-# $Id: lonambiguous.pm,v 1.12 2004/12/20 20:13:03 albertel Exp $
+# $Id: lonambiguous.pm,v 1.13 2004/12/20 20:13:52 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -149,6 +149,12 @@
            return OK;
        }
     }
+# ------------------------------------Encrypted requests go straight to navmaps
+   if ($ENV{'request.enc'}) {
+       $r->content_type('text/html');
+       $r->header_out(Location => 'http://'.$ENV{'HTTP_HOST'}.'/adm/navmaps');
+       return REDIRECT;
+   }
 # ------------------------------------------------ Would be standalone resource
 
    if (tie(%bighash,'GDBM_File',$ENV{'request.course.fn'}.'.db',