Welcome Guest, Not a member yet? Register   Sign In
how to secure my CI app refusing GET method in controller
#9

[eluser]drewbee[/eluser]
Wow Cool! I had no idea the server reported that!

Code:
// $ajax should hold a TRUE or FALSE depending on if it is an ajax request.
$ajax = !empty($this->input->server('HTTP_X_REQUESTED_WITH')) && $this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest' ? TRUE : FALSE;


Messages In This Thread
how to secure my CI app refusing GET method in controller - by El Forum - 01-30-2009, 08:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB