maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r611421 - /maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Date Sat, 12 Jan 2008 14:31:07 GMT
Author: hboutemy
Date: Sat Jan 12 06:31:06 2008
New Revision: 611421

URL: http://svn.apache.org/viewvc?rev=611421&view=rev
Log:
[PLXUTILS-60] fixed the code used to extract encoding from an XML prolog since it could catch
an attribute value defined in the XML content (merged from plexus-utils r7158)

Modified:
    maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java

Modified: maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java?rev=611421&r1=611420&r2=611421&view=diff
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
(original)
+++ maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Sat Jan 12 06:31:06 2008
@@ -731,7 +731,7 @@
             if ( bytesRead > 0 )
             {
                 is.reset();
-                BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog
) );
+                BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog.substring(
0, firstGT ) ) );
                 StringBuffer prolog = new StringBuffer();
                 String line = bReader.readLine();
                 while ( line != null )



Mime
View raw message