Replace by struct multiplies when value contains key

Description

In the following example I expect
: I want to add 1 underscore with struct-replace... 'target'
but got the result
: I want to add 1 underscore with struct-replace... '___target___'

<cffunction name="replaceBug">
<cfset string="I want to add 1 underscore with struct-replace... 'target'">
<cfset st = {"target"="_target_"}>
<cfdump var="#replace(string,st)#">
<cfabort>
</cffunction>

Environment

None

Status

Assignee

Michael Offner

Reporter

axel bons

Labels

None

Sprint

None

Fix versions

Affects versions

5.3.1.102

Priority

Critical
Configure