|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Is This Safe???
Hey guys.. I made an input validation method and I just wanted you're guys opinions on whether their are still loopholes or any ideas to make it safer / more efficient etc. Just basically a code critique, thank-you.
php Code:
|
|
#2
|
|||
|
|||
|
RE: Is This Safe???
The only way to be sure is to test it yourself and see if it satisfies your requirements.
|
|
#3
|
||||
|
||||
|
RE: Is This Safe???
I mean it satisfies my requirements and does what I need it to do, however I am not a hacker and I don't know very much about hacking web apps so I was just wondering if anybody could find any loopholes or possible exploits in the code.
|
|
#4
|
||||
|
||||
|
RE: Is This Safe???
One thing I notice right away is you define $mysql_banlist twice with identical values. You should do this right after the function line, before you do the if's.
|
|
#5
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Programming Theory' by andrew.
Reason: |
|
#6
|
||||
|
||||
|
RE: Is This Safe???
ya, I was just about to do that... thanks guys!
|
|
#7
|
|||
|
|||
|
RE: Is This Safe???
Are you using register_globals off or on? as that can be a major security problem.
|
|
#8
|
||||
|
||||
|
RE: Is This Safe???
OFF! any idiot who's code requires register_globals to be on is just stupid... thanks guys
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Is This Safe??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|