Skip to content

Instantly share code, notes, and snippets.

@arsonus
arsonus / xss_clean.php
Last active August 29, 2015 14:22 — forked from mbijon/xss_clean.php
/*
* XSS filter
*
* This was built from numerous sources
* (thanks all, sorry I didn't track to credit you)
*
* It was tested against *most* exploits here: http://ha.ckers.org/xss.html
* WARNING: Some weren't tested!!!
* Those include the Actionscript and SSI samples, or any newer than Jan 2011
*
<?php
function sumobi_edd_commissions_email_alert( $user_id, $commission_amount, $rate, $download_id, $commission_id, $payment_id ) {
global $edd_options;
/* send an email alert of the sale */
$from_name = isset( $edd_options['from_name'] ) ? $edd_options['from_name'] : get_bloginfo( 'name' );
$user = get_userdata( $user_id );
$email = $user->user_email; // set address here