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

www www at source.lon-capa.org
Thu Feb 2 19:15:15 EST 2012


www		Fri Feb  3 00:15:15 2012 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  JavaScript
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.367 loncom/interface/lonmenu.pm:1.368
--- loncom/interface/lonmenu.pm:1.367	Fri Jan 13 17:35:13 2012
+++ loncom/interface/lonmenu.pm	Fri Feb  3 00:15:14 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.367 2012/01/13 17:35:13 raeburn Exp $
+# $Id: lonmenu.pm,v 1.368 2012/02/03 00:15:14 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1132,12 +1132,14 @@
     my $confirm_switch = &mt("Editing requires switching to the resource's home server.").'\n'.
                          &mt('Switch server?');
 
+    my $esc_url=&escape($currenturl);
+    my $esc_symb=&escape($currentsymb);
 
 return (<<ENDUTILITY)
 
-    var currentURL="$currenturl";
-    var reloadURL="$currenturl";
-    var currentSymb="$currentsymb";
+    var currentURL=unescape("$esc_url");
+    var reloadURL=unescape("$esc_url");
+    var currentSymb=unescape("$esc_symb");
 
 $dc_popup_cid
 




More information about the LON-CAPA-cvs mailing list