Welcome Guest, Not a member yet? Register   Sign In
Disallowed characters - any chance to allow these?
#1

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

[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~%.:_\-ŠšŽžĐđČčĆć';
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB