[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 21 May 2004 19:16:36 -0000
www Fri May 21 15:16:36 2004 EDT
Modified files:
/loncom/auth lonroles.pm
Log:
Bug #3021: spaces in filename of first course resource
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.91 loncom/auth/lonroles.pm:1.92
--- loncom/auth/lonroles.pm:1.91 Sat May 8 20:45:00 2004
+++ loncom/auth/lonroles.pm Fri May 21 15:16:35 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.91 2004/05/09 00:45:00 www Exp $
+# $Id: lonroles.pm,v 1.92 2004/05/21 19:16:35 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -47,7 +47,10 @@
$r->send_http_header;
my $swinfo=&Apache::lonmenu::rawconfig();
my $bodytag=&Apache::loncommon::bodytag('Switching Role');
- $r->print (<<ENDREDIR);
+# Note to style police:
+# This must only replace the spaces, nothing else, or it bombs elsewhere.
+ $url=~s/ /\%20/g;
+ $r->print (<<ENDREDIR);
<head><title>$title</title>
<meta HTTP-EQUIV="Refresh" CONTENT="1; url=$url">
</head>