Welcome Guest, Not a member yet? Register   Sign In
Disallowed Key Characters. \"url\"
#1

[eluser]pokerking[/eluser]
Hi,

I am posting a request to sever.

http://localhost:81/searchsubmit/page/1

first time i get the result.

When i clicked the button second time

I see this error.

Disallowed Key Characters.

found that disallowed character is this : \"url\"

Now what the hell this is?. It is in POST request keys.

Can someone explain...

Thanks.

======================
The code that checks this is here. Input.php

// Clean $_POST Data
if (is_array($_POST) AND count($_POST) > 0)
{
foreach($_POST as $key => $val)
{
$_POST[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);
}
}
========================

function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters:'.$str.':</br>');
}

return $str;
}


Messages In This Thread
Disallowed Key Characters. \"url\" - by El Forum - 04-07-2008, 06:41 AM
Disallowed Key Characters. \"url\" - by El Forum - 04-07-2008, 06:55 AM
Disallowed Key Characters. \"url\" - by El Forum - 04-07-2008, 07:00 AM
Disallowed Key Characters. \"url\" - by El Forum - 04-07-2008, 07:19 AM
Disallowed Key Characters. \"url\" - by El Forum - 04-07-2008, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB