Return to Snippet

Revision: 17263
at August 29, 2009 15:54 by iloveitaly


Initial Code
$get = input::instance()->get();

if(empty($get)) {
	$cacheKey = 'empty';
} else {
	asort($get);
	$queryString = http_build_query($get);
	$cacheKey = md5($queryString);
}

Initial URL

                                

Initial Description
Using the kohana framework for XSS protection

Initial Title
Generate Unique Key Based on GET Vars

Initial Tags
php, cache

Initial Language
PHP