maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r494234 - /maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Date Mon, 08 Jan 2007 23:10:37 GMT
Author: dennisl
Date: Mon Jan  8 15:10:36 2007
New Revision: 494234

URL: http://svn.apache.org/viewvc?view=rev&rev=494234
Log:
[DOXIA-85] XhtmlSink does not escape &-characters in links, resulting in non-valid xhtml

Modified:
    maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java

Modified: maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?view=diff&rev=494234&r1=494233&r2=494234
==============================================================================
--- maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
(original)
+++ maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Mon Jan  8 15:10:36 2007
@@ -645,7 +645,7 @@
     {
         if ( !headFlag )
         {
-            write( "<a href=\"" + name + "\">" );
+            write( "<a href=\"" + HtmlTools.escapeHTML( name ) + "\">" );
         }
     }
 
@@ -653,7 +653,7 @@
     {
         if ( !headFlag )
         {
-            write( "<a href=\"" + name + "\" target=\"" + target + "\">" );
+            write( "<a href=\"" + HtmlTools.escapeHTML( name ) + "\" target=\"" + target
+ "\">" );
         }
     }
 



Mime
View raw message