Mar 26, 2013; 15:29
Jussi Hirvi
Square brackets in text fields
I just noticed to my surprise that my form handlers give syntax error if
anyone inserts a single square bracket in any form field. Duh!
Encode_html does not help - it leaves square brackets untouched. So for
now I do this:
#value = encode_html(#value);
#value -> replace('[','[');
#value -> replace(']',']');
before displaying the data.
Is there an easier way? This is L8.6.
- Jussi
#############################################################
Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Mar 26, 2013; 10:16
Kyle Jessup
Re: Square brackets in text fields
Mar 26, 2013; 22:16
Jussi Hirvi
Re: Square brackets in text fields