From 17cc53d31d236433871dfb1d4729d5a539bc2ae4 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 29 Sep 2010 14:01:54 +0000 Subject: [PATCH] fixed findPlaceholderEndIndex to work with a custom suffix as well (SPR-7574) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3697 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../org/springframework/util/PropertyPlaceholderHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java b/org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java index 9ec877213f6..4b1b2c37b12 100644 --- a/org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java +++ b/org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java @@ -190,7 +190,7 @@ public class PropertyPlaceholderHelper { if (StringUtils.substringMatch(buf, index, this.placeholderSuffix)) { if (withinNestedPlaceholder > 0) { withinNestedPlaceholder--; - index = index + this.placeholderPrefix.length() - 1; + index = index + this.placeholderSuffix.length(); } else { return index;