[LON-CAPA-cvs] cvs: loncom /cgi lonmodulecheck.pl

raeburn raeburn at source.lon-capa.org
Sun May 12 21:16:23 EDT 2013


raeburn		Mon May 13 01:16:23 2013 EDT

  Modified files:              
    /loncom/cgi	lonmodulecheck.pl 
  Log:
  - Load user's environment if available, even if access granted based on IP,
    in case user is a DC with a browser session.
  
  
Index: loncom/cgi/lonmodulecheck.pl
diff -u loncom/cgi/lonmodulecheck.pl:1.2 loncom/cgi/lonmodulecheck.pl:1.3
--- loncom/cgi/lonmodulecheck.pl:1.2	Fri Feb  8 14:51:47 2013
+++ loncom/cgi/lonmodulecheck.pl	Mon May 13 01:16:23 2013
@@ -3,7 +3,7 @@
 # Compares checksums for most installed files with expected values
 # and reports discrepancies.
 #
-# $Id: lonmodulecheck.pl,v 1.2 2013/02/08 14:51:47 raeburn Exp $
+# $Id: lonmodulecheck.pl,v 1.3 2013/05/13 01:16:23 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,7 +58,9 @@
 
 sub main {
     my ($londaemons,$lonlib,$lonincludes,$lontabdir,$lonhost) = @_;
-    if (!&LONCAPA::lonauthcgi::check_ipbased_access('checksums')) {
+    if (&LONCAPA::lonauthcgi::check_ipbased_access('checksums')) {
+        &LONCAPA::loncgi::check_cookie_and_load_env();
+    } else {
         if (!&LONCAPA::loncgi::check_cookie_and_load_env()) {
             &Apache::lonlocal::get_language_handle();
             print(&LONCAPA::loncgi::missing_cookie_msg());




More information about the LON-CAPA-cvs mailing list