[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

www lon-capa-cvs@mail.lon-capa.org
Fri, 15 Aug 2003 13:25:28 -0000


www		Fri Aug 15 09:25:28 2003 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Bug #2049: $ENV{'REQUEST_URI'} has the escaped version of special 
  characters, need to unescape before testing whether or not it is
  "on the map".
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.82 loncom/interface/lonmenu.pm:1.83
--- loncom/interface/lonmenu.pm:1.82	Wed Aug  6 13:23:49 2003
+++ loncom/interface/lonmenu.pm	Fri Aug 15 09:25:28 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.82 2003/08/06 17:23:49 www Exp $
+# $Id: lonmenu.pm,v 1.83 2003/08/15 13:25:28 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -178,7 +178,8 @@
     if (($ENV{'browser.interface'} eq 'textual') ||
         ($ENV{'environment.remote'} eq 'off') ||
         ((($ENV{'request.publicaccess'}) || 
-         (!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) &&
+         (!&Apache::lonnet::is_on_map(
+	   &Apache::lonnet::unescape($ENV{'REQUEST_URI'})))) &&
         (!$forcereg))) {
  	return $result.
           '<script type="text/javascript">function LONCAPAreg(){;} function LONCAPAstale(){}</script>'.$force_title;