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

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?

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

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.

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

Nope, it's always been disabled.

Theme © iAndrew 2016 - Forum software by © MyBB