Re: HTML_QuickfForm: does quickform automatically escape field data in an EDIT form?

From: Date: Tue, 09 Jan 2007 20:55:41 +0000
Subject: Re: HTML_QuickfForm: does quickform automatically escape field data in an EDIT form?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26301@lists.php.net to get a copy of this message
--- Justin Patrin <papercrane@gmail.com> wrote: > On 1/9/07, l Burnerheimerton > <lburnerheimerton@yahoo.com> wrote: > > --- Justin Patrin <papercrane@gmail.com> wrote: > > > On 1/8/07, l Burnerheimerton > > > <lburnerheimerton@yahoo.com> wrote: > > > > I am having trouble with data being double > escaped > > > in > > > > a form field on a form that uses > HTML_Quickform. > > > I > > > > can only assume that quickform escapes data > > > rendered > > > > in an editable field. Is that right? > > > > > > > > > > Escaping how? QF of course escapes any user info > it > > > outputs so as not > > > to allow XSS. > > > > > > -- > > > Justin Patrin > > > > Can you let me know know where that is documented? > I > > searched for it but could not easily find it. > Many thanks. > > > > I don't know where it might be. Why not give us an > example of what the > problem you're having is? > > -- > Justin Patrin I spen tseveral hours debugging this yesterday and now knowing that QF does escape, saves me from doing that again. Yes, it makes perfect sense that it should but I could find no docuemntation so I had to assume it did not. Anyway, in an editable form, I was using htmlentities() on a field before throwing it to QF. I know what you're saying..."WHY??" I am NOT doing that anymore BUT nevertheless, it did take me a several hours to diagnose that I believed QF did escape. Yes, I am GLAD(!) QF escapes and understand why it does. Thank you for building that in. Having said that, I suggest it be added to the documentation. Thanks Justin! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#26301) next »