--- loncom/lonnet/perl/lonnet.pm 2007/06/07 22:09:59 1.885 +++ loncom/lonnet/perl/lonnet.pm 2007/06/11 17:13:34 1.886 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.885 2007/06/07 22:09:59 albertel Exp $ +# $Id: lonnet.pm,v 1.886 2007/06/11 17:13:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1739,13 +1739,16 @@ sub extract_embedded_items { while (my $t=$p->get_token()) { if ($t->[0] eq 'S') { my ($tagname, $attr) = ($t->[1],$t->[2]); - push (@state, $tagname); + push(@state, $tagname); if (lc($tagname) eq 'allow') { &add_filetype($allfiles,$attr->{'src'},'src'); } if (lc($tagname) eq 'img') { &add_filetype($allfiles,$attr->{'src'},'src'); } + if (lc($tagname) eq 'a') { + &add_filetype($allfiles,$attr->{'href'},'href'); + } if (lc($tagname) eq 'script') { if ($attr->{'archive'} =~ /\.jar$/i) { &add_filetype($allfiles,$attr->{'archive'},'archive');