Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
magic_quotes substitute
Old 07-06-2009, 04:34 AM magic_quotes substitute
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
So my site still relies on magic_quotes since most of my site is made up of user input forms but i know this setting will soon be gone in PHP6 and its no longer a best practice... what should I be using instead..

currently all my form fields are only filtered with htmlentities() then if it needs to reapplied to form fields stripslashes() is used...

at this point I should turn off magic_quotes as it also creates errors with my htaccess rewrites when names include ' or " etc...

should I just use addslashes() when inputted and stripslashes() or is there something better I should look at?
orionoreo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2009, 05:44 PM Re: magic_quotes substitute
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
This thread should help: http://www.webmaster-talk.com/php-fo...njections.html
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to magic_quotes substitute
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10754 seconds with 12 queries