* fix for ajaxupdatefile.
This commit is contained in:
@@ -1730,6 +1730,7 @@ class upgradeModel extends model
|
||||
*/
|
||||
public function checkSafeFile()
|
||||
{
|
||||
if($this->app->getModuleName() == 'upgrade' and $this->app->getMethodName() == 'ajaxupdatefile') return true;
|
||||
$statusFile = $this->app->getAppRoot() . 'www' . DIRECTORY_SEPARATOR . 'ok.txt';
|
||||
return (!file_exists($statusFile) or (time() - filemtime($statusFile)) > 3600) ? $statusFile : false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user