CodeIgniter Forums
Disallowed characters - any chance to allow these? - 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: Disallowed characters - any chance to allow these? (/showthread.php?tid=20476)



Disallowed characters - any chance to allow these? - El Forum - 07-11-2009

[eluser]developer10[/eluser]
I need to allow the following characters in my URIs

Šš Žž Đđ Čč Ćć

these exist in my native language (Bosnian), so i want them to be allowed

this is only what i managed to find in config

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

but i'm not sure how to add them properly.

anyone can help? I'll appreciate it.

EDIT: is it enough to just type them after the semicolon?


Disallowed characters - any chance to allow these? - El Forum - 07-12-2009

[eluser]Cro_Crx[/eluser]
[quote author="cold_fusion" date="1247328549"]EDIT: is it enough to just type them after the semicolon?[/quote]

erm... yeah before the semi-colon. would be like this


Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-ŠšŽžĐđČčĆć';



Disallowed characters - any chance to allow these? - El Forum - 07-12-2009

[eluser]developer10[/eluser]
[quote author="Cro_Crx" date="1247429795"][quote author="cold_fusion" date="1247328549"]EDIT: is it enough to just type them after the semicolon?[/quote]

erm... yeah before the semi-colon. would be like this


Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-ŠšŽžĐđČčĆć';
[/quote]

as far as i noticed, minus sign should always be the last one, since CI tends to interpret it (and next characters from both sides) as a range,
for example, take a look at characters above: as the range "from \ to Š"

weird, but true, i suppose