All pastes #546352 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-07 01:34 UTC
rendered paste body
function clean_input ($input) {
        // Strip out superfluous search terms and potential
        // cracker characters.
        $badwords = array (';', '*');
        $input = str_replace ($badwords, '', $input);
        // Escape any single or double quotes.
        $input = addslashes ($input);
        return $input;
} // End of clean_input().