Welcome Guest, Not a member yet? Register   Sign In
What do you do with html injections?
#6

[eluser]Mr.Data[/eluser]
Would it be a solution to apply htmlentities to each element of the array you send to the view?
Something like this:
Code:
$data = ...; // everything which should be displayed within the view
$data = array_map('htmlentities',$data);  
$this->load->view('view', $data);


Messages In This Thread
What do you do with html injections? - by El Forum - 03-21-2012, 12:15 PM
What do you do with html injections? - by El Forum - 03-21-2012, 12:43 PM
What do you do with html injections? - by El Forum - 03-21-2012, 01:41 PM
What do you do with html injections? - by El Forum - 03-21-2012, 01:48 PM
What do you do with html injections? - by El Forum - 03-22-2012, 12:26 AM
What do you do with html injections? - by El Forum - 03-22-2012, 09:37 AM
What do you do with html injections? - by El Forum - 03-23-2012, 02:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB