Front End User, Self Registration & Form Builder Escape ' on submission error
Posted: Mon Sep 27, 2010 4:06 pm
Hi,
I'm facing a strange behaviour and I'm not sure what I'm doing wrong with my setup.
When I input a value containing a simple quote ' inside forms of these 3 modules (FEU, SRM, FBuilder) and I make a submission error (ie wrong captcha, forget a field...), the form reloads but all simple quote are converted to ' and mess up my values.
I believe this might have something to do with encoding/decoding.
In order to "fix" this behaviour I was hopping to use the php "urldecode" to "unscape" the values.
However only {$control->control} is available in templates (as far as I understand) and I {$control->control|urldecode} doesn't really works (normal).
Does anyone have an elegant way of solving this? Is this a bug?
Thank you.
I'm facing a strange behaviour and I'm not sure what I'm doing wrong with my setup.
When I input a value containing a simple quote ' inside forms of these 3 modules (FEU, SRM, FBuilder) and I make a submission error (ie wrong captcha, forget a field...), the form reloads but all simple quote are converted to ' and mess up my values.
I believe this might have something to do with encoding/decoding.
In order to "fix" this behaviour I was hopping to use the php "urldecode" to "unscape" the values.
However only {$control->control} is available in templates (as far as I understand) and I {$control->control|urldecode} doesn't really works (normal).
Does anyone have an elegant way of solving this? Is this a bug?
Thank you.