Re: Re: [forums] Re: [PEAR] Weird bug with HTML_QuickForm
| From: | Justin Patrin | Date: | Tue, 15 Mar 2005 00:07:33 +0000 |
| Subject: | Re: Re: [forums] Re: [PEAR] Weird bug with HTML_QuickForm | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18047@lists.php.net to get a copy of this message | ||
On Mon, 14 Mar 2005 18:56:55 -0600, daneel <daneel@epseelon.org> wrote:
> This is very interesting. I didn't even know it was possible. Could you
> give me more details about the procedure to do that ?
Put this in a .htaccess and it should do it:
php_value register_globals off
>
> john.f.kline@att.net a écrit :
>
> >Believe it or not their are a lot of ISP's out there that run with register globals
> >ON!!! (e.g. PANIX).... A safe thing to do is to turn the globals off anyway with an .htaccess file
> >directive...
> >
> >Cheers...
> >
> >-------------- Original message from daneel <daneel@epseelon.org>: --------------
> >
> >
> >
> >
> >>OK I finally found the bug, and not a small one ! THE bug :)
> >>The problem was that "something" was added to a group and it was not an
> >>array of elements. I would like to thank the FAQ guys because it gave me
> >>the hint to start with. But the thing was that the bug only occurred on
> >>my remote server and not on localhost. So there couldn't be a mistake in
> >>my form. And it took me another 2 hours to realize that... on my remote
> >>server... register_globals was On !!! Bouuuuuuh ! Too bad ! Amateurs !!!
> >>Everybody knows that it's one of the first thing to do when you setup
> >>PHP : turn register_globals OFF lol
> >>I know it's a matter of choice and I'm a bit excessive... but there I
> >>would have appreciated them to CHOOSE THE SAME OPTION AS ME !!!
> >>Nevermind, as register_globals was on, some of the variable names
> >>refering to the arrays of elements added to some groups were...
> >>overriden by POST variables...
> >>I should have checked the difference between PHP configurations.
> >>Anyway. Thank you for your help and remember :
> >>
> >>TURN REGISTER_GLOBALS OFF !!! (or at least check the configurations... :o)
> >>
--
Justin Patrin