From: <die...@us...> - 2012-02-27 09:52:57
|
Revision: 3737 http://openutils.svn.sourceforge.net/openutils/?rev=3737&view=rev Author: diego_schivo Date: 2012-02-27 09:52:51 +0000 (Mon, 27 Feb 2012) Log Message: ----------- CRIT-47 Hyphen escape Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2012-02-27 09:51:38 UTC (rev 3736) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2012-02-27 09:52:51 UTC (rev 3737) @@ -141,6 +141,10 @@ { encodedPath.append("_x002c_"); } + else if (inXpathCondition <= 0 && ch == '-') + { + encodedPath.append("_x002d_"); + } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |