Jump to content
MakeWebGames

Security Question, Do you think this would work better than MRES?


Recommended Posts

Posted

If i put something along the lines of

function html_array($r = false) {

if (!(($r) || is_array($r))) { return false; }

$ret = array();

foreach ($r as $key=>$val) {

$ret[$key] = htmlentities($val,ENT_QUOTES);

}

return $ret;

}

in global_func

then use html_array for all output and mres for all input on all my scripts that required it, Would this be a huge step to security if i took the time out to do it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...