#1 May 11, 2020 4:37pm

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

Form Builder and replaceRelativeRoots

Sometime in 2018, the implementation of replaceRelativeRoots() changed from str_replace to strtr. We upgraded to a post-2018 bigtree version very recently.

It doesn't play well with the version of Form Builder that we have, which sanitizes form submissions with replaceRelativeRoots. (It used to recursively sanitize before, now it warns and returns null or an empty string.)

Due to some urgency over here, I am going to remove replaceRelativeRoots calls in Form Builder. But I was wondering if there is an officially blessed fix for this.

Thanks,
Tushar

Offline

#2 May 13, 2020 8:07am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 970

Re: Form Builder and replaceRelativeRoots

Hi Tushar,

Can you send me an example of a row from the btx_form_builder_entries table that doesn't play nicely with the strtr version of replaceRelativeRoots? You can email me it directly.

Thanks!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.