* fix for bug #197

This commit is contained in:
wangyidong
2011-04-14 09:05:36 +00:00
parent cd92aee60f
commit 9fd2fc1b9f
+16 -1
View File
@@ -349,7 +349,22 @@ class user extends control
)
{
if($this->app->getViewType() == 'json') die(json_encode(array('status' => 'success')));
die(js::locate($this->post->referer, 'parent'));
if($this->config->requestType == 'PATH_INFO')
{
$path = substr($this->post->referer, strrpos($this->post->referer, '/')+1);
$path = rtrim($path, 'html');
$path = rtrim($path, '.');
list($module, $method) = explode($this->config->requestFix, $path);
}
else
{
$module = $this->get->m;
$method = $this->get->f;
}
if(common::hasPriv($module, $method))
die(js::locate($this->post->referer, 'parent'));
else
die(js::locate($this->config->default->module, 'parent'));
}
else
{