[LON-CAPA-cvs] cvs: loncom /auth lonshibauth.pm

raeburn raeburn at source.lon-capa.org
Sun Oct 10 19:59:19 EDT 2021


raeburn		Sun Oct 10 23:59:19 2021 EDT

  Modified files:              
    /loncom/auth	lonshibauth.pm 
  Log:
  - Get query string from $r->args instead of populating %ENV.
  
  
Index: loncom/auth/lonshibauth.pm
diff -u loncom/auth/lonshibauth.pm:1.9 loncom/auth/lonshibauth.pm:1.10
--- loncom/auth/lonshibauth.pm:1.9	Thu Oct  7 19:24:25 2021
+++ loncom/auth/lonshibauth.pm	Sun Oct 10 23:59:19 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Redirect Shibboleth authentication to designated URL (/adm/sso).
 #
-# $Id: lonshibauth.pm,v 1.9 2021/10/07 19:24:25 raeburn Exp $
+# $Id: lonshibauth.pm,v 1.10 2021/10/10 23:59:19 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -90,9 +90,8 @@
             $hostname = $alias;
         }
         my $dest = $protocol.'://'.$hostname.$target;
-        $r->subprocess_env;
-        if ($ENV{'QUERY_STRING'} ne '') {
-            $dest .= '?'.$ENV{'QUERY_STRING'};
+        if ($r->args ne '') {
+            $dest .= (($dest=~/\?/)?'&':'?').$r->args;
         }
         unless (($uri eq '/adm/roles') || ($uri eq '/adm/logout')) {
             if ($target eq '/adm/login') {




More information about the LON-CAPA-cvs mailing list