Hacker News new | ask | show | jobs
by rmrfrmrf 4798 days ago

   $username = InputSanitizer::getInstance()->getPostData('username');
There. Now it's OO ;P.
1 comments

I would rather use Java in that case.
Your wish is my command.

    $username = array();
    exec('java sanitize.class ' . escapeshellarg($_POST['username']), $username);