简体   繁体   中英

Codeigniter - global XSS filtering TRUE

i setted up this in my config.php:

$config['global_xss_filtering'] = TRUE;

the problem for me is that it removes all the accented chars like "à,ù,è,ò"

is this usual?

also why replacing them? how can i leave them?

thanks

In order to leave the accented characters you can use the convert_accented_characters() function of text_helper which will transliterate high ASCII characters to low ASCII equivalents. You have to load the helper first. Documentation here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM