• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploading HTML Code

#6
[eluser]xwero[/eluser]
another option is to pre-process the posted value with strip_tags.
Code:
$_POST['url_youtube'] = strip_tags($_POST['url_youtube'],'<object><param><embed>');
$this->form_validation->set_rules('url_youtube', 'url_youtube', 'xss_clean|trim');


Messages In This Thread
Uploading HTML Code - by El Forum - 04-28-2009, 03:34 AM
Uploading HTML Code - by El Forum - 04-28-2009, 03:46 AM
Uploading HTML Code - by El Forum - 04-28-2009, 03:47 AM
Uploading HTML Code - by El Forum - 04-28-2009, 03:53 AM
Uploading HTML Code - by El Forum - 04-28-2009, 04:10 AM
Uploading HTML Code - by El Forum - 04-28-2009, 04:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.