[LON-CAPA-cvs] cvs: loncom / lonenc.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 20 Jul 2007 19:07:27 -0000


albertel		Fri Jul 20 15:07:27 2007 EDT

  Modified files:              
    /loncom	lonenc.pm 
  Log:
  - BUG#5315, need an enc seed when not in course context, 
    doesn't really matter what it is though
  
  
Index: loncom/lonenc.pm
diff -u loncom/lonenc.pm:1.20 loncom/lonenc.pm:1.21
--- loncom/lonenc.pm:1.20	Wed Dec 27 12:11:08 2006
+++ loncom/lonenc.pm	Fri Jul 20 15:07:25 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # URL translation for encrypted filenames
 #
-# $Id: lonenc.pm,v 1.20 2006/12/27 17:11:08 albertel Exp $
+# $Id: lonenc.pm,v 1.21 2007/07/20 19:07:25 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -56,7 +56,7 @@
         $seed=substr($seed.$seed,0,32);
         return pack("H32",$seed);
     } else {
-        return;
+        return pack("H32",1);
     }
 }