Codeigniter - Disable XSS filtering on a post basis

后端 未结 7 1660
予麋鹿
予麋鹿 2020-12-03 03:25

I\'m trying to set up a CMS on the back of a site but whenever post data has a in it the post data gets scrapped.

I\'ve got $config

相关标签:
7条回答
  • i defined

    global $mypost;
    $mypost=$_POST;
    

    in index.php of my root cms

    then anywhere i can the global variable like

    global $mypost;
    
    $var=isset($mypost["field"])? $mypost["field"]:"";
    

    whenever i need post without filter.

    worked for me hope it helps.

    0 讨论(0)
提交回复
热议问题