Our site was hit by a ddos attack and some malformed cookies were sent out. We use the CodeIgniter framework. As it is unreasonable to ask our users to clear their cookies, I was wondering what the ramifications would be of changing the following function in the core. The cookies that are producing the error are of the form:
__utmt_~1
The original function is:
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
What are the possible side effects if I change it to allow a ~? I know that this is here to prevent malicious users and I want to make sure that this won't have undesirable effect.
if ( ! preg_match("/^[a-z0-9:_\/-\~]+$/i", $str))
{
exit('Disallowed Key Characters.');
}