mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fixes #5745: Gii and debug modules may cause 404 exception when the route contains dashes
This commit is contained in:
@ -5,6 +5,7 @@ Yii Framework 2 debug extension Change Log
|
||||
-----------------------
|
||||
|
||||
- Bug #5402: Debugger was not loading when there were closures in asset classes (samdark)
|
||||
- Bug #5745: Gii and debug modules may cause 404 exception when the route contains dashes (qiangxue)
|
||||
- Enh #5600: Allow configuring debug panels in `yii\debug\Module::panels` as panel class name strings (qiangxue)
|
||||
|
||||
|
||||
|
||||
@ -124,7 +124,7 @@ class Module extends \yii\base\Module implements BootstrapInterface
|
||||
|
||||
$app->getUrlManager()->addRules([
|
||||
$this->id => $this->id,
|
||||
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
|
||||
$this->id . '/<controller:[\w\-]+>/<action:[\w\-]+>' => $this->id . '/<controller>/<action>',
|
||||
], false);
|
||||
}
|
||||
|
||||
|
||||
@ -4,8 +4,9 @@ Yii Framework 2 gii extension Change Log
|
||||
2.0.1 under development
|
||||
-----------------------
|
||||
|
||||
- Enh #5613: Added `--overwrite` option to Gii console command to support overwriting all files (motin, qiangxue)
|
||||
- Bug #5745: Gii and debug modules may cause 404 exception when the route contains dashes (qiangxue)
|
||||
- Bug: Gii console command help information does not contain global options (qiangxue)
|
||||
- Enh #5613: Added `--overwrite` option to Gii console command to support overwriting all files (motin, qiangxue)
|
||||
|
||||
|
||||
2.0.0 October 12, 2014
|
||||
|
||||
@ -88,7 +88,7 @@ class Module extends \yii\base\Module implements BootstrapInterface
|
||||
$app->getUrlManager()->addRules([
|
||||
$this->id => $this->id . '/default/index',
|
||||
$this->id . '/<id:\w+>' => $this->id . '/default/view',
|
||||
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
|
||||
$this->id . '/<controller:[\w\-]+>/<action:[\w\-]+>' => $this->id . '/<controller>/<action>',
|
||||
], false);
|
||||
} elseif ($app instanceof \yii\console\Application) {
|
||||
$app->controllerMap[$this->id] = [
|
||||
|
||||
Reference in New Issue
Block a user