Re: How unsafe is register_globals?
| From: | Mark | Date: | Thu, 17 Jul 2003 14:19:19 +0000 |
| Subject: | Re: How unsafe is register_globals? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155619@lists.php.net to get a copy of this message | ||
http://httpd.apache.org/docs-2.1/mod/core.html#allowoverride
You can indicate which directives can be overrriden, and which
cannot.
--- Paul Chvostek <paul+php@it.ca> wrote:
> On Thu, Jul 17, 2003 at 01:56:57PM +0800, Jason Wong wrote:
> > >
> > > gets the error "php_flag not allowed here". I see from the
> comments at
> > > http://www.php.net/register_globals that I need
> > > AllowOverride
> Options to
> > > make that function ... but is it possible to have fine-grained
> enough an
> > > AllowOverride statement that only register_globals can be
> changed?
> > >
> > > I wouldn't want a user to use his .htaccess file to turn off
> safe_mode
> > > or open_basedir.
> >
> > Take control of the setting yourself by setting it httpd.conf,
> inside the
> > container of the virtual host in question.
>
> Not so easy with mod_vhost_alias, given that I want it to apply
> only to
> certain users, and possibly only for directories for those users.
>
> The .htaccess solution is the right one unless "AllowOverride
> Options"
> allowed the user to turn off safe_mode and open_basedir. I don't
> have a
> non-production machine to test it on at the moment.
>
> Any idea how I give the user local register_globals control without
> also
> letting them alter the other php.ini options?
>
> --
> Paul Chvostek
> <paul@it.ca>
> Operations / Abuse / Whatever
> it.canada, hosting and development
> http://www.it.ca/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to
defend everyone else's right to the same thing.
***************************************
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com