maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r611422 - /maven/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Date Sat, 12 Jan 2008 14:32:45 GMT
Author: hboutemy
Date: Sat Jan 12 06:32:44 2008
New Revision: 611422

URL: http://svn.apache.org/viewvc?rev=611422&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/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java

Modified: maven/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java?rev=611422&r1=611421&r2=611422&view=diff
==============================================================================
--- maven/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
(original)
+++ maven/release/trunk/maven-release-manager/src/main/java/org/codehaus/plexus/util/xml/XmlReader.java
Sat Jan 12 06:32:44 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 + 1 ) ) );
                 StringBuffer prolog = new StringBuffer();
                 String line = bReader.readLine();
                 while ( line != null )



Mime
View raw message