nb Core Community
September 06, 2010, 12:34:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: 1.2.2 +nb is now final and released

@new registrations. I will not allow any new registrations here as there are more (real person) spambots here than ever.... captcha proved to be ineffective.

After your registration, mail me at ( admin AT shinobilegends.com ) from the mail address you want to register. Provide some text about you and possibly your game.
 
   Home   Help Search Calendar Downloads Login Register  
Pages: [1]
  Print  
Author Topic: stripslashes  (Read 794 times)
Harthas
Newbie
*

Karma: +0/-0
Posts: 25



View Profile
« on: April 07, 2008, 12:19:25 PM »

Well - Stripslashes - A kind of weird function in LoGD. And it actually seems to exist 3 times.
Twice for arrays (stripslashes_deep in lib/stripslashes_deep.php | stripslashes_array in lib/sanitize.php) and once from PHP-Core.

The one in stripslashes_deep.php seems to be pretty... *don'tsaythatword*, so we should probably just throw it out of code. Only the petition_default.php uses stripslashes_deep() two times, which we could easily change in stripslashes_array

So long - And thanks for all the fish.
Logged

Always aim at complete harmony of thought and word and deed. Always aim at purifying your thoughts and everything will be well.
Mahatma Gandhi
Nightborn
Administrator
Sr. Member
*****

Karma: +20/-0
Posts: 302



View Profile WWW
« Reply #1 on: April 07, 2008, 01:07:31 PM »

Any more occurences in the code anywhere?

I normally use the php stripslashes.

if this is in for backward compatibility to <=php4, I'll throw it out.
Logged

It should be fixed, but it won't be easy and it won't be fast. If you want
to help - wonderful. But keep in mind that it will take months of wading
through the ugliest code we have in the tree. If you've got a weak stomach -
stay out. I've been there and it's not a nice place.

   - Al Viro
Harthas
Newbie
*

Karma: +0/-0
Posts: 25



View Profile
« Reply #2 on: April 07, 2008, 01:11:07 PM »

Doesn't seem to be like that.
Haven't seen another stripslashes_deep().
Logged

Always aim at complete harmony of thought and word and deed. Always aim at purifying your thoughts and everything will be well.
Mahatma Gandhi
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!