From: Thomas Goirand <thomas@goirand.fr>
To: mlmmj@mlmmj.org
Subject: Re: Quick hack to get mlmmj to work in PHP 5
Date: Thu, 07 Aug 2008 19:08:05 +0000 [thread overview]
Message-ID: <489B4815.9080104@goirand.fr> (raw)
In-Reply-To: <45CB89DA-8EDA-4BB9-B500-967D0245BB71@phporaclehosting.com>
Gareth Fiford wrote:
> Register globals is a security no no
>
> You don't need to disable globals for this to work
>
> No one is going to enable globals on any of my servers
I would rather add a very small .htaccess or a directive in
/etc/apache2, with the proper php directive to enable register globals.
That is much much better than modifying files of a package that will be
overwritten at the next upgrade. I don't see why using "Register
globals" only for the faulty script is less safer than your hack (in
fact, your hack is even more dangerous, as it's badly written, it
forgets about things in sessions for example, so it's not fully
compatible with enabling register globals).
> Http_post_vars depricated on favour of _POST
>
> Same for get
And both are to be avoided, it's been YEARS that I recommend using
$_REQUEST instead so you don't need to bother if the variables are
coming from GET, POST, or even the cookies.
> Sent from my iPhone
No one is going to enable an iPhone on any of my servers :)
Thomas
next prev parent reply other threads:[~2008-08-07 19:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 22:03 Quick hack to get mlmmj to work in PHP 5 Gareth Fiford
2008-08-07 7:38 ` Christian Laursen
2008-08-07 8:31 ` Gareth Fiford
2008-08-07 13:34 ` Christian Laursen
2008-08-07 13:59 ` Franky Van Liedekerke
2008-08-07 14:40 ` Gareth Fiford
2008-08-07 19:08 ` Thomas Goirand [this message]
2008-08-07 20:01 ` Gareth Fiford
2008-08-08 10:33 ` Thomas Goirand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489B4815.9080104@goirand.fr \
--to=thomas@goirand.fr \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox