Welcome Guest, Not a member yet? Register   Sign In
Load view from url, dangerous ?
#1

[eluser]Référencement Google[/eluser]
Hi there,

I was doing something today and was wondering how this would be dangerous, or potentialy dangerous. The thing is a page controller which will load a view passed as second segment of url, the code:
Code:
public function _remap($page = false)
    {
        $this->load->view('pages/'.$page);
    }

Of course I saw that CI does a file_exists() in its view loading, that make it secure, but do you see you security experts a potential problem here?


Messages In This Thread
Load view from url, dangerous ? - by El Forum - 12-19-2009, 11:11 AM
Load view from url, dangerous ? - by El Forum - 12-19-2009, 12:13 PM
Load view from url, dangerous ? - by El Forum - 12-19-2009, 12:21 PM
Load view from url, dangerous ? - by El Forum - 12-19-2009, 01:41 PM
Load view from url, dangerous ? - by El Forum - 12-19-2009, 01:57 PM
Load view from url, dangerous ? - by El Forum - 12-20-2009, 10:35 PM
Load view from url, dangerous ? - by El Forum - 12-21-2009, 03:33 AM
Load view from url, dangerous ? - by El Forum - 12-21-2009, 03:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB