Welcome Guest, Not a member yet? Register   Sign In
entity cutting string short?
#1

[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?
#2

[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~%©®.:_\-';
#3

[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.
#4

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

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




Theme © iAndrew 2016 - Forum software by © MyBB