| View previous topic :: View next topic |
| Author |
Message |
Evaders99

Joined: Jan 11, 2002 Posts: 3049 Location: USA
|
Posted: Mon Mar 27, 2006 10:02 pm Post subject: Patched 3.2 Issue - Release? |
|
|
There's an issue with Patched 3.2, it is only designed for use when magic_quotes_gpc is turned off. A version that will work with it on or off will take a modified filter() function like 7.9
You can turn off magic_quotes_gpc from the php.ini on your server, or use this in .htaccess
| Code: |
PHP_FLAG magic_quotes_gpc off
|
So should I release Patched 3.2 anyway as is.. using the php.ini to turn off magic_quotes_gpc? Or do people want to wait for a more extensive patch? _________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
JoAnne Newbie


Joined: Oct 16, 2005 Posts: 13 Location: NYC
|
Posted: Sun Apr 02, 2006 10:56 am Post subject: Re: Patched 3.2 Issue - Release? |
|
|
| Evaders99 wrote: |
So should I release Patched 3.2 anyway as is.. using the php.ini to turn off magic_quotes_gpc? Or do people want to wait for a more extensive patch? |
I think it is important to have the latest patches...... but this option to turn it off or on, might be confusing to some. Also with some hosts you have to request the php.ini file.
Maybe you could release it with a notice and then state that the extensive patch will be released later  |
|
| Back to top |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3049 Location: USA
|
Posted: Sun Apr 02, 2006 3:09 pm Post subject: |
|
|
Aye - definitely if I release it, I'll add a big notice to it _________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
syred Newbie


Joined: Oct 03, 2007 Posts: 2
|
Posted: Mon Oct 29, 2007 2:01 am Post subject: |
|
|
Instead of magick quotes is there a way to use stripslashes() foreach($_POST[] ?
Example
foreach($_POST as $name => $value){
if(get_magic_quotes_gpc()==1){
$_POST[$name] = $value;
}else{
if ($value != null) {
$_POST[$name] = addslashes($value);
}
}
}
use if ($value != null) { stripslashes this because stripslashes converts null strings to string(0) " " and scripts that check if a string is null or not probably will have issues. |
|
| Back to top |
|
 |
syred Newbie


Joined: Oct 03, 2007 Posts: 2
|
Posted: Mon Oct 29, 2007 2:06 am Post subject: |
|
|
| But i think its done already in patched versions, what happens if you enable magic quotes ? |
|
| Back to top |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3049 Location: USA
|
Posted: Wed Oct 31, 2007 2:41 am Post subject: |
|
|
I've worked on some code to undo the addslashes if magic_quotes_gpc is turned on. I really don't remember if I've added the code to the CVS... I've been testing it and it seems to work fine under all conditions I've tested. _________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
|