Skip to content

Instantly share code, notes, and snippets.

@JulioPotier
Created April 6, 2018 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulioPotier/aa46a11a067a9a3273b163d15c7a2bd1 to your computer and use it in GitHub Desktop.
Save JulioPotier/aa46a11a067a9a3273b163d15c7a2bd1 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: SecuPress htmlentities $_GET array
Author: SecuPress
Author URI: https://secupress.pro
*/
foreach ( $_GET as &$g ) {
$g = htmlentities( $g, ENT_QUOTES, 'UTF-8' );
}
unset( $g );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment