Export to GitHub

yii - issue #2334

CUrlRule pattern, url with special characters


Posted on Apr 15, 2011 by Helpful Bird

Maybe its not issue but 1. I have use CUrlManger settings like this 'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, 'rules'=>array( '<controller:(articles)>/<part:(\w)+>/<alias>'=>array( '<controller>/view', 'urlSuffix'=>'.html' ), ...

  1. Then i call url like this http://cc.local/articles/social/Sekretyi_avtomobilejj_iz_%ABForsazha_4%BB_CHast_vtoraya.html Rule not work, because CUrlRule pattern have "u" modificator by default
  2. It would be nice if it will be can make off, in yiilite.php to

Sorry for me english, its not my native

Comment #1

Posted on Jul 1, 2011 by Massive Cat

(No comment was entered for this change.)

Comment #2

Posted on Jul 7, 2011 by Massive Cat

(No comment was entered for this change.)

Comment #3

Posted on Jul 8, 2011 by Massive Cat

This issue was closed by revision r3351.

Comment #4

Posted on Jul 31, 2011 by Quick Kangaroo

{{{ if (! preg_match('~~suSX', $data)) return false; if (function_exists('preg_last_error') && preg_last_error() !== PREG_NO_ERROR) return false;

preg_match('~~suSX') much faster (up to 4 times), then mb_check_encoding($data, 'UTF-8')!

if (function_exists('mb_check_encoding') && ! mb_check_encoding($data, 'UTF-8')) return false; #DEPRECATED

}}}

Status: Fixed

Labels:
Priority-Medium Milestone-1.1.9