CodeIgniter Forums
Characters permitted by Security Filtering? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Characters permitted by Security Filtering? (/showthread.php?tid=5421)



Characters permitted by Security Filtering? - El Forum - 01-21-2008

[eluser]NBrepresent[/eluser]
On the input/security library page of the docs, under the Security Filtering heading one of the bullet points is "Filters the POST/COOKIE array keys, permitting only alpha-numeric (and a few other) characters."

Exactly which characters are allowed?


Characters permitted by Security Filtering? - El Forum - 01-21-2008

[eluser]Derek Allard[/eluser]
Essentially, ~, %, ., :, _ and -, but this is configurable by you if you want.

Hit your config file and look for
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';

What you see there is the list of character that will be used in a regular expression that filters it.