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

Assignee

Michael Offner

Reporter

Axel Bons

Priority

Critical

Labels

None

Fix versions

Sprint

None

Affects versions

Configure