SW:Rebellion NetworkHosted by the SW:Rebellion Network
Welcome to Evaders Squadron Coding [ESC]
Did you know that... you can get the latest file changes to the Nuke Patched Core by using the CVS!
Home Forums Nuke Patched Core Coding Services Webmaster Services Personal
  Login/Create an Account    

Forums
· Forums FAQ
· Search
· Usergroups
· Profile
· Private Messages

Support Us
This site runs with your support. Please donate:

User Info/Login
Welcome, Anonymous
Nickname
Password
Security Code: Security Code
Type Security Code

(Register)
Membership:
Latest: cygnus
New Today: 0
New Yesterday: 2
Overall: 9113

People Online:
Visitors: 15
Members: 0
Total: 15

Link to Us

Affliates
RPG Boards Hosting

Evaders Squadron Coding [ESC] :: View topic - Patched 3.2 Issue - Release?
Patched 3.2 Issue - Release?

 
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Nuke Patched Core 7.6/7/8 + 7.5
View previous topic :: View next topic  
Author Message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Mon Mar 27, 2006 10:02 pm    Post subject: Patched 3.2 Issue - Release? Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
JoAnne
Newbie
Newbie


Joined: Oct 16, 2005
Posts: 13
Location: NYC

PostPosted: Sun Apr 02, 2006 10:56 am    Post subject: Re: Patched 3.2 Issue - Release? Reply with quote

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 Confused
Back to top
View user's profile Send private message Visit poster's website AIM Address
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Sun Apr 02, 2006 3:09 pm    Post subject: Reply with quote

Aye - definitely if I release it, I'll add a big notice to it
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
syred
Newbie
Newbie


Joined: Oct 03, 2007
Posts: 2

PostPosted: Mon Oct 29, 2007 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message
syred
Newbie
Newbie


Joined: Oct 03, 2007
Posts: 2

PostPosted: Mon Oct 29, 2007 2:06 am    Post subject: Reply with quote

But i think its done already in patched versions, what happens if you enable magic quotes ?
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Wed Oct 31, 2007 2:41 am    Post subject: Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Nuke Patched Core 7.6/7/8 + 7.5 All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

^Top
Home Your Account Forums Downloads F.A.Q. Submit News Hosting Contact Us

© 2005 - 2007 by Evaders99. All Rights Reserved.
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters.
You can syndicate our news using the file backend.php
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 10.4 Seconds