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

raeburn raeburn@source.lon-capa.org
Fri, 19 Dec 2008 13:49:26 -0000


raeburn		Fri Dec 19 13:49:26 2008 EDT

  Modified files:              
    /rat	lonsequence.pm 
  Log:
  - Replace hardcoded protocol with &Apache::lonnet::absolute_url().
  
  
Index: rat/lonsequence.pm
diff -u rat/lonsequence.pm:1.35 rat/lonsequence.pm:1.36
--- rat/lonsequence.pm:1.35	Thu Nov 20 15:19:05 2008
+++ rat/lonsequence.pm	Fri Dec 19 13:49:26 2008
@@ -2,7 +2,7 @@
 #
 # Sequence Handler
 #
-# $Id: lonsequence.pm,v 1.35 2008/11/20 15:19:05 jms Exp $
+# $Id: lonsequence.pm,v 1.36 2008/12/19 13:49:26 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -280,7 +280,8 @@
       &Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid],
 				'last_known' => [$disurl,$dismapid]); 
       &Apache::loncommon::content_type($r,'text/html');
-      $r->header_out(Location => 'http://'.$ENV{'HTTP_HOST'}.$disurl);
+      $r->header_out(Location => &Apache::lonnet::absolute_url($ENV{'SERVER_NAME'}).
+                                 $disurl);
       return REDIRECT;
    } else {
        &Apache::loncommon::content_type($r,'text/html');