Revision: 1073 http://openutils.svn.sourceforge.net/openutils/?rev=1073&view=rev Author: fgrilli Date: 2009-03-01 18:03:42 +0000 (Sun, 01 Mar 2009) Log Message: ----------- encode path Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java Modified: trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java =================================================================== --- trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java 2009-03-01 18:01:50 UTC (rev 1072) +++ trunk/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/AbstractMagnoliaCriteriaImpl.java 2009-03-01 18:03:42 UTC (rev 1073) @@ -1,5 +1,6 @@ package net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.impl; +import net.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.utils.XPathTextUtils; import info.magnolia.cms.core.Content; import info.magnolia.cms.core.search.QueryManager; @@ -15,7 +16,7 @@ /** * Constructor to be used by subclasses - * @param path String - the path preceeding the predicate in the jcr query statement + * @param path String - the path preceeding the predicate in the jcr query statement (you dont need to do escaping yourself) * @param queryManager - an instance of {@link QueryManager} * @param itemType - String the itemType. Defaults to {@link ItemType#getSystemName#toString()} * @param classType Class<?> - defaults to {@link Content} @@ -24,7 +25,7 @@ { super(); this.itemType = itemType; - this.path = path; + this.path = XPathTextUtils.encodeDigitsInPath(path); this.queryManager = queryManager; // defaults to info.magnolia.cms.core.Content this.classType = classType == null ? Content.class : classType; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |