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

raeburn raeburn at source.lon-capa.org
Wed Aug 21 19:55:16 EDT 2024


raeburn		Wed Aug 21 23:55:16 2024 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Prevent javascript errors due to quotes which localization might add.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.554 loncom/interface/lonmenu.pm:1.555
--- loncom/interface/lonmenu.pm:1.554	Tue May 21 02:57:16 2024
+++ loncom/interface/lonmenu.pm	Wed Aug 21 23:55:16 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.554 2024/05/21 02:57:16 raeburn Exp $
+# $Id: lonmenu.pm,v 1.555 2024/08/21 23:55:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2686,6 +2686,7 @@
     my $esc_url=&escape($currenturl);
     my $esc_symb=&escape($currentsymb);
     my $newname = &mt('New Name');
+    &js_escape(\$newname);
 
     my $countdown = &countdown_toggle_js();
 




More information about the LON-CAPA-cvs mailing list