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

raeburn raeburn at source.lon-capa.org
Sat Jul 17 17:48:27 EDT 2021


raeburn		Sat Jul 17 21:48:27 2021 EDT

  Modified files:              
    /loncom	lontrans.pm 
  Log:
  - Bug 6914
    If a LON-CAPA load balancer is a Shibboleth SP and WAF/Reverse Proxy in
    use, (SP excluded), escape part of css filename to avoid 404 when css is
    requested for /adm/switchserver. 
  
  
Index: loncom/lontrans.pm
diff -u loncom/lontrans.pm:1.32 loncom/lontrans.pm:1.33
--- loncom/lontrans.pm:1.32	Sat Jul 17 20:34:15 2021
+++ loncom/lontrans.pm	Sat Jul 17 21:48:27 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # URL translation for User Files
 #
-# $Id: lontrans.pm,v 1.32 2021/07/17 20:34:15 raeburn Exp $
+# $Id: lontrans.pm,v 1.33 2021/07/17 21:48:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -111,6 +111,9 @@
                     $protocol = 'https';
                 }
                 my $querystring = $r->args;
+                if ($uri =~ m{^(/adm/css/)(.+)(.css)$}) {
+                    $uri = $1.&escape($2).$3;
+                }
                 my $location = $protocol.'://'.$redirect.$uri;
                 if ($querystring) {
                     $location .= "?$querystring";




More information about the LON-CAPA-cvs mailing list