Re: Premature Ajax-ulation

From: Date: Fri, 03 Aug 2007 17:58:30 +0000
Subject: Re: Premature Ajax-ulation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260141@lists.php.net to get a copy of this message
At 8:39 AM -0500 8/3/07, Jay Blanchard wrote:
How are you securing Ajax? I know that for the most part we send data to a PHP script for processing, so all of the normal rules for sending that data apply (mysql_real_escape_string(), etc.)
Jay: First, the subject title is LOL. Second, I don't know about others but every ajax post/get data received is treated like any other post/get data -- it's validated and scrubbed. Most ajax data provided in my scripts are there to trigger an event in a php script -- so it becomes even simperer to scrub it via a switch -- either it fits what I expect or the process/flow travels to a default, but the "data" is never used "as-is". Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#260141) next »