mirror of https://github.com/apache/maven.git
Modello pom parser fails if it contains an '&'. Put these in a CDATA.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@718451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed4083c93f
commit
50bfa25053
|
@ -131,7 +131,7 @@ public String getValue()
|
|||
public String getResolvedValue()
|
||||
{
|
||||
if( !uri.contains("#property") && resolvedValue != null && !resolvedValue.startsWith ("<![CDATA[")
|
||||
&& (resolvedValue.contains( "=" ) || resolvedValue.contains( "<" )))
|
||||
&& (resolvedValue.contains( "=" ) || resolvedValue.contains( "<" ) || resolvedValue.contains( "&" )))
|
||||
{
|
||||
resolvedValue = "<![CDATA[" + resolvedValue + "]]>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue