[LON-CAPA-cvs] cvs: rat / lonwrapper.pm

raeburn raeburn at source.lon-capa.org
Sat Nov 18 16:45:11 EST 2023


raeburn		Sat Nov 18 21:45:11 2023 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  - Entity encoding for href in link displayed when iframe not supported.
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.83 rat/lonwrapper.pm:1.84
--- rat/lonwrapper.pm:1.83	Wed Sep 27 14:52:28 2023
+++ rat/lonwrapper.pm	Sat Nov 18 21:45:11 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.83 2023/09/27 14:52:28 raeburn Exp $
+# $Id: lonwrapper.pm,v 1.84 2023/11/18 21:45:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -82,7 +82,7 @@
         }
     }
 
-    my $noiframe = &Apache::loncommon::modal_link($url.$anchor,$lt{'show'},500,400);
+    my $noiframe = &Apache::loncommon::modal_link(&HTML::Entities::encode($url.$anchor,'&<>"\''),$lt{'show'},500,400);
     my $args = {'bgcolor' => '#FFFFFF'};
     if ($forcereg) {
         $args->{'force_register'} = $forcereg;




More information about the LON-CAPA-cvs mailing list