Skip to content

Commit

Permalink
Merge pull request #1067 from nanasess/fix-user_data-delete
Browse files Browse the repository at this point in the history
ファイル管理でuser_data配下が削除される不具合修正
  • Loading branch information
nanasess authored Dec 11, 2024
2 parents 90bb24a + 8744cd6 commit 3e6abcb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ public function action()
$objFormParam->convParam();
$this->arrErr = $objFormParam->checkError();
$select_file = SC_Helper_FileManager_Ex::convertToAbsolutePath($objFormParam->getValue('select_file'));
if ($select_file === realpath(USER_REALDIR)) {
GC_Utils_Ex::gfPrintLog($select_file.' は削除できません.');
$tpl_onload = "alert('user_dataは削除できません');";
$this->setTplOnLoad($tpl_onload);

break;
}
$path_exists = SC_Utils::checkFileExistsWithInBasePath($select_file, USER_REALDIR);
if (SC_Utils_Ex::isBlank($this->arrErr) && $path_exists) {
SC_Helper_FileManager_Ex::deleteFile($select_file);
Expand Down

0 comments on commit 3e6abcb

Please sign in to comment.