--- rat/lonwrapper.pm 2023/10/06 17:35:54 1.49.2.11.2.5 +++ rat/lonwrapper.pm 2023/11/18 21:45:11 1.84 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.49.2.11.2.5 2023/10/06 17:35:54 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 @@ sub wrapper { } } - 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; @@ -336,12 +336,12 @@ ENDLINK } }); window.onload = function(){ - if (LCresizedef) { - LCnotready = 0; - \$(window).trigger('resize'); - } else { - LCnotready = 1; - } + if (LCresizedef) { + LCnotready = 0; + \$(window).trigger('resize'); + } else { + LCnotready = 1; + } }; SCRIPT # javascript will position the iframe if window was resized (or zoomed) @@ -500,7 +500,7 @@ sub handler { $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; &Apache::loncommon::validate_folderpath(1,'',$cnum,$cdom); } - unless ($env{'form.only_body'}) { + unless ($env{'form.only_body'}) { $brcrum = &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); }