PDA

View Full Version : register_globals on


GeorgeA
02-03-2007, 08:22 AM
Hi. I have a shared basic account , and noticed I had register_globals on , and as that might be a security problem (xss attacks) I wonder if I could have that turned off.
I tried to disable it trough .htaccess:
php_flag register_globals Off

and trough a php.ini file
register_globals off

but neither method worked.
I am running php5 trough the instructions in the knowledge base.

Ray
02-06-2007, 12:44 PM
Hello,

Unfortunately, with PHP 5, we are unable to provide site/folder specific PHP directives. We are looking into disabling register_globals for PHP 5 at this time.

Kevin
03-19-2007, 01:45 AM
Hello,

Unfortunately, with PHP 5, we are unable to provide site/folder specific PHP directives. We are looking into disabling register_globals for PHP 5 at this time.

This issue should now be fixed. I have installed a PHP 5 module called htscanner which will parse the .htaccess files for PHP configuration directives and pass them on to PHP automatically. If it doesn't work for some particular usage case, be sure to let us know.

dan
04-03-2007, 09:04 AM
This issue should now be fixed. I have installed a PHP 5 module called htscanner which will parse the .htaccess files for PHP configuration directives and pass them on to PHP automatically. If it doesn't work for some particular usage case, be sure to let us know.

Thanks, I requested this a while back since I was using a popular wiki script (mediawiki) that needed php 5 to work but became very insecure with register_globals turned on.

GeorgeA
04-03-2007, 10:30 AM
Great news Kevin!Waiting forward to actually test this.

kb0kqa
01-20-2008, 10:04 PM
This will probably be handy to know - the new Drupal 5.6 requires this to be off.

I tried php_flag register_globals Off in the .htaccess using php4 and it worked as well.