[LON-CAPA-cvs] cvs: loncom /auth checkauthen.pm
raeburn
raeburn at source.lon-capa.org
Mon Dec 24 09:29:49 EST 2018
raeburn Mon Dec 24 14:29:49 2018 EDT
Modified files:
/loncom/auth checkauthen.pm
Log:
- Only store tiny url as firsturl form item in %env if initial request,
so as not to break LTI provider functionality for /adm/lti/tiny/$dom/id
Index: loncom/auth/checkauthen.pm
diff -u loncom/auth/checkauthen.pm:1.20 loncom/auth/checkauthen.pm:1.21
--- loncom/auth/checkauthen.pm:1.20 Sun Nov 25 02:49:26 2018
+++ loncom/auth/checkauthen.pm Mon Dec 24 14:29:48 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network
# checks for a cookie to authenticate a user
#
-# $Id: checkauthen.pm,v 1.20 2018/11/25 02:49:26 raeburn Exp $
+# $Id: checkauthen.pm,v 1.21 2018/12/24 14:29:48 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -99,7 +99,8 @@
}
if (($fail == FORBIDDEN) &&
(($r->uri eq '/adm/email') || ($r->uri eq '/adm/preferences') ||
- ($r->uri eq '/adm/requestcourse') || ($r->uri =~ m{^/tiny/[\w\-.]+/\w+$}))) {
+ ($r->uri eq '/adm/requestcourse') ||
+ (($r->is_initial_req()) && ($r->uri =~ m{^/tiny/[\w\-.]+/\w+$})))) {
$env{'form.firsturl'} = $r->uri;
}
return $fail;
More information about the LON-CAPA-cvs
mailing list