Skip to content

Commit

Permalink
Merge pull request #57 from orrisroot/master
Browse files Browse the repository at this point in the history
fixed infinite loop bug.
  • Loading branch information
nao-pon committed Oct 29, 2018
2 parents 98864c8 + 226c31d commit 7a6f762
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ private function _userPassColumnLenFix()
$add = ' // Alrady fixed length of users table pass column of this DB (Auto inserts by X-update)'."\n";
$add .= ' define(\'XCUBE_CORE_USER_PASS_LEN_FIXED\', true);'."\n\n";
$src = preg_replace($sens, '$0' . $add, $src);
$local = XOOPS_TRUST_PATH.'/'.$this->mod_config['temp_path'].'/mainfile.custom.php';
file_put_contents($local, $src);
$mod = @ fileperms($mainfile);
$this->Ftp->localChmod($mainfile, 0606);
file_put_contents($mainfile, $src, LOCK_EX);
$this->Ftp->localPut($local, $mainfile);
$this->Ftp->localChmod($mainfile, $mod? $mod : 0404);
@unlink($local);
}
}
}
Expand Down

0 comments on commit 7a6f762

Please sign in to comment.