How to ensure unicity to url

Comparing #3 with #4

Revision #4 was created by marcovtwout marcovtwout on Dec 12, 2011, 3:39:43 PM.

yii error handler

Content

[...]
```php
public function beforeAction($action)
{
$
url = normalizedUrl = CHtml::normalizeUrl(array_merge( array( "/" . .$this->route ), $_GET )); if( (Yii::app()->request->url != CHtml::$normalizedUrl( $url )  && strpos($normalizedUrl, Yii::app()->errorHandler->errorAction) === false) { $this->redirect( $u$normalizedUrl, true, 301 );
}
[...]
public function beforeAction($action)
{
$
url = normalizedUrl = CHtml::normalizeUrl(array_merge( array( "/" . .$this->route ), $_GET )); if( (Yii::app()->request->url != CHtml::$normalizedUrl( $url )  && strpos($normalizedUrl, Yii::app()->errorHandler->errorAction) === false) { $this->redirect( $u$normalizedUrl, true, 301 );
}

return parent::beforeAction($action);
}
}
[...]