* Change resetFileName.

This commit is contained in:
Lufei
2022-12-08 14:00:48 +08:00
parent d6db014f99
commit 91d4f420ec

View File

@@ -1090,8 +1090,7 @@ class user extends control
}
/* Remove the real path for security reason. */
$pathPos = strrpos($this->app->getBasePath(), DIRECTORY_SEPARATOR, -2);
$resetFileName = substr($resetFileName, $pathPos + 1);
$resetFileName = str_replace($this->app->getBasePath(), '', $resetFileName);
$this->view->title = $this->lang->user->resetPassword;
$this->view->status = 'reset';