[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm

raeburn raeburn at source.lon-capa.org
Sun Aug 3 09:52:59 EDT 2014


raeburn		Sun Aug  3 13:52:59 2014 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  - allow tag not needed if image data is included directly in <img> tag's
    src attribute using a "data URI".
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.291 loncom/publisher/lonpublisher.pm:1.292
--- loncom/publisher/lonpublisher.pm:1.291	Sun Jul 27 11:39:33 2014
+++ loncom/publisher/lonpublisher.pm	Sun Aug  3 13:52:59 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.291 2014/07/27 11:39:33 raeburn Exp $
+# $Id: lonpublisher.pm,v 1.292 2014/08/03 13:52:59 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -726,6 +726,8 @@
 		    foreach my $type ('src','href','background','bgimg') {
 			foreach my $key (keys(%parms)) {
 			    if ($key =~ /^$type$/i) {
+                                next if (($lctag eq 'img') && ($type eq 'src') && 
+                                         ($parms{$key} =~ m{^data\:image/gif;base64,}));
 				$parms{$key}=&set_allow(\%allow,$logfile,
 							$target,$tag,
 							$parms{$key},$type);




More information about the LON-CAPA-cvs mailing list