You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2008/01/12 15:33:53 UTC

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

Author: hboutemy
Date: Sat Jan 12 06:33:51 2008
New Revision: 611423

URL: http://svn.apache.org/viewvc?rev=611423&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=611423&r1=611422&r2=611423&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:33:51 2008
@@ -731,7 +731,7 @@
             if ( bytesRead > 0 )
             {
                 is.reset();
-                BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog.substring( 0, firstGT ) ) );
+                BufferedReader bReader = new BufferedReader( new StringReader( xmlProlog.substring( 0, firstGT + 1 ) ) );
                 StringBuffer prolog = new StringBuffer();
                 String line = bReader.readLine();
                 while ( line != null )