[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Wed May 15 14:48:38 EDT 2013


raeburn		Wed May 15 18:48:38 2013 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - When identifying embedded items in HTML pages skip <a> tag if href attribute
    is blank.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1221 loncom/lonnet/perl/lonnet.pm:1.1222
--- loncom/lonnet/perl/lonnet.pm:1.1221	Tue May 14 18:47:07 2013
+++ loncom/lonnet/perl/lonnet.pm	Wed May 15 18:48:38 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1221 2013/05/14 18:47:07 raeburn Exp $
+# $Id: lonnet.pm,v 1.1222 2013/05/15 18:48:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3363,7 +3363,7 @@
 		&add_filetype($allfiles,$attr->{'src'},'src');
 	    }
 	    if (lc($tagname) eq 'a') {
-                unless ($attr->{'href'} =~ /^#/) {
+                unless (($attr->{'href'} =~ /^#/) || ($attr->{'href'} eq '')) {
                     &add_filetype($allfiles,$attr->{'href'},'href');
                 }
 	    }




More information about the LON-CAPA-cvs mailing list