Diff for /loncom/interface/lonhelp.pm between versions 1.6 and 1.9

version 1.6, 2003/07/15 18:50:43 version 1.9, 2003/08/29 02:45:07
Line 35  use Apache::File(); Line 35  use Apache::File();
 use Apache::loncommon();  use Apache::loncommon();
 use Apache::lonacc();  use Apache::lonacc();
 use Apache::lontexconvert();  use Apache::lontexconvert();
   use Apache::lonnavmaps; # for advancedUser
 use tth();  use tth();
 use GDBM_File();  use GDBM_File();
   
Line 65  HEADER Line 66  HEADER
   
     $r->print($tex);      $r->print($tex);
   
       if (Apache::lonnavmaps::advancedUser()) {
 $r->print(<<FOOTER);  $r->print(<<FOOTER);
     <!-- END -->      <!-- END -->
     <hr />      <hr />
Line 73  $r->print(<<FOOTER); Line 75  $r->print(<<FOOTER);
     </body>      </body>
 </html>  </html>
 FOOTER  FOOTER
   } else {
       $r->print(<<FOOTER);
       <!-- END -->
       </body>
   </html>
   FOOTER
   }
 }  }
   
 # Render takes a tex fragment, transforms it for TtH, and returns the  # Render takes a tex fragment, transforms it for TtH, and returns the
Line 139  sub handler Line 148  sub handler
      # of nothing but alphanums, ' ,, or ., or the file       # of nothing but alphanums, ' ,, or ., or the file
      # will be "not found", no matter what.       # will be "not found", no matter what.
             
      return HTTP_NOT_FOUND if ($filenames !~ /\A[-0-9a-zA-z_'',.]+\Z/);       return HTTP_NOT_FOUND if ($filenames !~ /\A[-0-9a-zA-z_'',:.]+\Z/);
   
      # Join together the tex files, return HTTP_NOT_FOUND if any of       # Join together the tex files, return HTTP_NOT_FOUND if any of
      # them are not found       # them are not found
      my $tex = '';       my $tex = '';
        # Since in insertlist.tab I want to specify multiple files,
        # and insertlist.tab also uses commas, I need something else
        # so replace : with ,
        $filenames =~ s/:/,/g;
      my @files = split(/,/, $filenames);       my @files = split(/,/, $filenames);
             
      for my $filename (@files) {       for my $filename (@files) {

Removed from v.1.6  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>