[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm
raeburn
raeburn at source.lon-capa.org
Mon Jan 26 17:11:53 EST 2015
raeburn Mon Jan 26 22:11:53 2015 EDT
Modified files:
/loncom/auth lonauth.pm
Log:
- Eliminate 404 errors because of malformed urls such as /adm/adm/navmaps
when user reloads a previously displayed LON-CAPA page in a browser where
the session cookie has expired or been deleted.
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.136 loncom/auth/lonauth.pm:1.137
--- loncom/auth/lonauth.pm:1.136 Fri Dec 5 12:03:20 2014
+++ loncom/auth/lonauth.pm Mon Jan 26 22:11:52 2015
@@ -1,7 +1,7 @@
# The LearningOnline Network
# User Authentication Module
#
-# $Id: lonauth.pm,v 1.136 2014/12/05 12:03:20 kruse Exp $
+# $Id: lonauth.pm,v 1.137 2015/01/26 22:11:52 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -103,9 +103,7 @@
if ($destsymb =~ /___/) {
# FIXME Need to deal with encrypted symbs and urls as needed.
my ($map,$resid,$desturl)=split(/___/,$destsymb);
- unless ($desturl=~/^(adm|editupload|public)/) {
- $desturl = &Apache::lonnet::clutter($desturl);
- }
+ $desturl = &Apache::lonnet::clutter($desturl);
$desturl = &HTML::Entities::encode($desturl,'"<>&');
$destsymb = &HTML::Entities::encode($destsymb,'"<>&');
$destination .= 'destinationurl='.$desturl.
More information about the LON-CAPA-cvs
mailing list