Fix #145 broken redirect from admin folder to admin module

This commit is contained in:
Kijin Sung 2016-01-22 11:53:39 +09:00
parent 0b24509356
commit 676f17fb71
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,11 @@ class ModuleHandler extends Handler
{
$this->entry = Context::convertEncodingStr($entry);
}
if(!$this->module && $this->mid === 'admin')
{
Context::set('module', $this->module = 'admin');
Context::set('mid', $this->mid = null);
}
// Validate variables to prevent XSS
$isInvalid = NULL;