Welcome Guest, Not a member yet? Register   Sign In
The URI you submitted has disallowed characters
#1

[eluser]Brain Coder[/eluser]
hello

i have make an page controller and i can generate the pages with tinymce

the problem is when the page name is arabic like this

http://127.0.0.1/smylat/smylat/index.php...es/المعاقب

showing error

The URI you submitted has disallowed characters

is there any way to make the uri allowing the arabic characters ?

also im using the default

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

[eluser]xwero[/eluser]
can't you transliterate the pagename?
#3

[eluser]Brain Coder[/eluser]
[quote author="xwero" date="1245771623"]can't you transliterate the pagename?[/quote]

can you explain how to do that?

,,, the point is when some one need a page like this

contact us => in arabic "الاتصال بنا "

i need the url showing the page in arabic characters because its good in search engine !!
#4

[eluser]TheFuzzy0ne[/eluser]
It's also possible to configure your allowed chars on-the-fly. You can check the URI for a certain pattern, and if condition is met, you can change the allowed URI chars accordingly.
#5

[eluser]Ibrahim Mohamed Abotaleb[/eluser]
I have tried to solve this problem to use arabic characters in url
and i have reach to convert allowed characters variable in config to disallowed characters like
Code:
$config['permitted_uri_chars'] = '~`!#$%^&()[]{};\':",<>';
and edit URI library in line 189
from
Code:
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
to
Code:
if (  preg_match("|^.[".preg_quote($this->config->item('permitted_uri_chars'))."]|", $str))
#6

[eluser]Brain Coder[/eluser]
[quote author="Ibrahim Mohamed Abotaleb" date="1246290061"]I have tried to solve this problem to use arabic characters in url
and i have reach to convert allowed characters variable in config to disallowed characters like
Code:
$config['permitted_uri_chars'] = '~`!#$%^&()[]{};\':",<>';
and edit URI library in line 189
from
Code:
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))
to
Code:
if (  preg_match("|^.[".preg_quote($this->config->item('permitted_uri_chars'))."]|", $str))
[/quote]

its work thank you Smile
#7

[eluser]Php Coder[/eluser]
$config['permitted_uri_chars'] .= 'لإ-لآ-أ-لآ-ض-ص-ث-ق-ف-غ-ع-ه-خ-ح-ج-د-ط-ك-م-ن-ت-ا-ل-ب-ي-س-ش-ئ-ء-ؤ-ر-ل-ا-ى-ة-و-ز-ظ-إ';

حط دي

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

في ملف

/application/config/config.php




Theme © iAndrew 2016 - Forum software by © MyBB