ReReplace broke after Update 26
We are using Coldfusion 2023 Update 26 on Windows Server 22. Yesterday we applied the Update 26 and ended up with bad data in the database, because of “reReplace” no longer working like it used to.
We have a function that attempts to capitalize the first character of a string in case the user does not “case” properly. At the heart of the function is something like this: rereplace(lcase("test"), '^\w|\s\w', '\U\0','ALL')
At update 25, this call would return “Test”, but after applying update 26, it’s returning “UTest”. Because of this, we had lots of data go into our database with letter U prepended. This will be a major pain to fix. I am sure there are other ways to uppercase first letter of a string, but at this point, I haven’t had a chance to look into it. Just thought I’d post this here so other users are aware.
I have filed a bug report with Adobe. Please upvote so this will get noticed and fixed.
https://tracker.adobe.com/#/view/CF-4234761
