Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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