Hello,
On my site, we use CodeIgniter, which is a common framework. It has a function that searches for all cookies on a given domain. This is the function:
I noticed while styling themes, my main site would break and leave an error message (Disallowed Key Characters). We were able to figure out exactly what was going on and it was the following cookie causing the issue:
Its not a huge issue I suppose, but it is rather annoying.
Thanks a lot!
Mike Creuzer
Audentio.com
On my site, we use CodeIgniter, which is a common framework. It has a function that searches for all cookies on a given domain. This is the function:
PHP:
/**
* Clean Keys
*
* This is a helper function. To prevent malicious users
* from trying to exploit keys we make sure that keys are
* only named with alpha-numeric text and a few other items.
*
* @access private
* @param string
* @return string
*/
function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
// Clean UTF-8 if supported
if (UTF8_ENABLED === TRUE)
{
$str = $this->uni->clean_string($str);
}
return $str;
}
I noticed while styling themes, my main site would break and leave an error message (Disallowed Key Characters). We were able to figure out exactly what was going on and it was the following cookie causing the issue:
Code:
xf_FilterList_admin.php%3Ftemplates%2F
Its not a huge issue I suppose, but it is rather annoying.
Thanks a lot!
Mike Creuzer
Audentio.com