Skip to content

Commit

Permalink
remove sanitize_text_field() and wp_unslash() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schreiber committed Mar 8, 2017
1 parent f98400b commit 368b933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetpack-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function jetpack_amp_build_stats_pixel_url() {
$data = compact( 'v', 'j', 'blog', 'post', 'tz', 'srv' );
}

$data['host'] = isset( $_SERVER['HTTP_HOST'] ) ? rawurlencode( sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) ) : ''; // input var ok
$data['host'] = isset( $_SERVER['HTTP_HOST'] ) ? rawurlencode( $_SERVER['HTTP_HOST'] ) : ''; // input var ok
$data['rand'] = 'RANDOM'; // amp placeholder
$data['ref'] = 'DOCUMENT_REFERRER'; // amp placeholder
$data = array_map( 'rawurlencode' , $data );
Expand Down

0 comments on commit 368b933

Please sign in to comment.