CodeIgniter Forums
entity cutting string short? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: entity cutting string short? (/showthread.php?tid=10662)



entity cutting string short? - El Forum - 08-07-2008

[eluser]geckzilla[/eluser]
I've got a form, and if you input something with a ©, ®, trademark, etc. it will ignore the entity and the rest of the string after it instead of inserting it into the database.

I've got the collation and character set configured properly in the database connection.

I know I can run htmlentities on the input but I'd rather store the actual entities. What could be causing this?


entity cutting string short? - El Forum - 08-07-2008

[eluser]Sumon[/eluser]
You can try by changing application\config\config.php
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
by
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%©®.:_\-';



entity cutting string short? - El Forum - 08-07-2008

[eluser]geckzilla[/eluser]
It doesn't actually have anything to do with the URI, it's being posted. I tried bypassing the post and putting the characters directly into the insert array but that failed as well. Oh well, it may have nothing to do with codeigniter. I am fairly certain I was able to do it on another server with the exact same CI configuration and it worked without a problem.


entity cutting string short? - El Forum - 08-08-2008

[eluser]Bogdan Tanase[/eluser]
maybe it has something to do with xss_clean, if you have it enabled globally?


entity cutting string short? - El Forum - 08-08-2008

[eluser]geckzilla[/eluser]
Nope, it's always been disabled.