[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 18 Oct 2005 21:30:49 -0000


albertel		Tue Oct 18 17:30:49 2005 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - fixing start_img to do the correct thing with allowing to a <img src="" />, this means things without proper <allow /> tags will continue to work
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.288 loncom/xml/londefdef.pm:1.289
--- loncom/xml/londefdef.pm:1.288	Mon Oct 10 05:13:19 2005
+++ loncom/xml/londefdef.pm	Tue Oct 18 17:30:49 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.288 2005/10/10 09:13:19 foxr Exp $
+# $Id: londefdef.pm,v 1.289 2005/10/18 21:30:49 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -2531,7 +2531,8 @@
 	my $inside = &Apache::lonxml::get_all_text("/img",$parser);
 	return '';
     }
-    $Apache::lonxml::extlinks[$#Apache::lonxml::extlinks+1]=$src;
+    push(@Apache::lonxml::extlinks,
+	 &Apache::lonnet::clutter(&Apache::lonnet::hreflocation($Apache::lonxml::pwd[-1],$src)));
     my $currentstring = '';
     my $scaling = .3;