Welcome Guest, Not a member yet? Register   Sign In
problem with "permitted_uri_chars" + "url_title" because of "arabic" + "utf-8"
#3

[eluser]DeaD SouL[/eluser]
dear InsiteFX,
my problem is not with the language files
they are working great

my problem was with the url_site() function
when i use it to make href links

ex:
Code:
echo anchor('controller/method/' . url_site('some_name') , 'click here' );

but it's been solved

[quote author="DeaD SouL" date="1257045025"]
so i decided to use unicode characters blocks instead of the characters
according to Unicode Block 'Arabic'
Code:
ء = U+0621
ي = U+064a
so i've changed it to this
Code:
'[^[U+0621]-[U+064a]a-z0-9\-\._]'        => '',

and it worked just fine Big Grin[/quote]

my currently problem is with
Code:
$config['permitted_uri_chars']  = 'a-z 0-9~%.:_\-';
info:
Quote:/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs. When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/


thanks for the tip

anyone else..


Messages In This Thread
problem with "permitted_uri_chars" + "url_title" because of "arabic" + "utf-8" - by El Forum - 10-31-2009, 07:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB