Hi there folks!
I've always written in the following manner:
if($if_its_safe){
/* Do the stuff */
}else{
/* Don't do the stuff.
}
but have always come across:
if(!$its_safe){
exit;
}
/* Do the stuff only if it's safe */
I've never written that way because visually, the super secret stuff is only an "exit;" away from the checks and balances. It's worried me.
It looks much neater, however so I wouldn't mind moving to that. Is it a safe way to handle things? I know this can be a loaded question, but I'm only asking if exiting a script really exits the script or if there's any added security in burying my stuff in an else.
Thanks for your time!