addslashes_gpc

Definition:
function addslashes_gpc($gpc) {}

Adds slashes to escape strings.
Slashes will first be removed if magic_quotes_gpc is set, see http://www.php.net/magic_quotes for more details.

Parameters

  • string $gpc: The string returned from HTTP request data.

Return values

returns:Returns a string escaped with slashes.

Source code

function addslashes_gpc($gpc) {

	if ( get_magic_quotes_gpc() )

		$gpc = stripslashes($gpc);



	return esc_sql($gpc);

}

207

No comments yet... Be the first to leave a reply!

Leave a comment