[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Mon, 18 Jan 2010 20:28:20 -0000
raeburn Mon Jan 18 20:28:20 2010 EDT
Modified files: (Branch: version_2_9_X)
/loncom/interface lonmenu.pm
Log:
- Backport 1.282 (xhtml).
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.244.2.7 loncom/interface/lonmenu.pm:1.244.2.8
--- loncom/interface/lonmenu.pm:1.244.2.7 Sun Aug 23 13:22:16 2009
+++ loncom/interface/lonmenu.pm Mon Jan 18 20:28:20 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.244.2.7 2009/08/23 13:22:16 raeburn Exp $
+# $Id: lonmenu.pm,v 1.244.2.8 2010/01/18 20:28:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -144,6 +144,7 @@
use Apache::lonenc();
use Apache::lonlocal;
use LONCAPA qw(:DEFAULT :match);
+use HTML::Entities();
use vars qw(@desklines %category_names %category_members %category_positions $readdesk);
@@ -1729,7 +1730,7 @@
}
$role_selector .= '</select>'."\n".
'<input type="hidden" name="destinationurl" value="'.
- $ENV{'REQUEST_URI'}.'" />'."\n".
+ &HTML::Entities::encode($ENV{'REQUEST_URI'},'"<>&').'" />'."\n".
'<input type="hidden" name="gotorole" value="1" />'."\n".
'<input type="hidden" name="selectrole" value="" />'."\n".
'<input type="hidden" name="switch" value="1" />'."\n".