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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: