duanpuluan0480 2014-05-18 22:45
浏览 54
已采纳

禁用codeigniter xss过滤或在其上运行

I have a codeigniter website and i've turned on global xss filtering and i've developed the website like this. I observed that i can't pass e-mails as get parameter no more . ex: www.foo.com/data?email=example@dot.com

I wonder how i can pass the email as parameter keeping the global xss filtering on, as i don't want to add a lot of xss_clean('data').

I thought about splitting it in pieces like www.foo.com/data?id=example&domain=dot&ext=com but i don't know if this is the best idea. Any suggestions?

  • 写回答

1条回答 默认 最新

  • douqianxian7008 2014-05-18 22:48
    关注

    Are you URL-encoding the email?

    name@domain.com should become name%40domain.com

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?