public function SecureHeader($str) {
    $str = str_replace("\r", '', $str);
    $str = str_replace("\n", '', $str);
    return trim($str);
  }
public function SecureHeader($str) {
    $str = str_replace("\r", '', $str);
    $str = str_replace("\n", '', $str);
    return trim($str);
  }
public function SecureHeader ( $ str ) { $ str = str_replace ( "\r" , '' , $ str ) ; $ str = str_replace ( "\n" , '' , $ str ) ; return trim ( $ str ) ; }
Strips newlines to prevent header injection.
@access public
@param string $str String
@return string
Strips newlines to prevent header injection .