Skip to content

Commit

Permalink
2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
conseilgouz committed Mar 28, 2023
1 parent 64d9178 commit b0f3827
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script.install.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,11 @@ private function postInstall() {
}
// Begin update HTACCESS -----------------------------------------------
private function forceHTAccess() {
// get security code
// get security code from table
$helperFile = JPATH_SITE . '/libraries/cgsecure/ipcheck.php';
if (!class_exists('CGIpCheckHelper') && is_file($helperFile)) include_once $helperFile;
$cgsecure_params = CGIpCheckHelper::getParams();
$this->security = $cgsecure_params->security;
if ($this->security == "0") $this->security = $this->random_float(0,1);
$this->security = $cgsecure_params->security; // htaccess has been created => security must contain a value
$serverConfigFile = $this->getServerConfigFile(self::SERVER_CONFIG_FILE_HTACCESS);
if (!$serverConfigFile) { // no .htaccess file : copy default htaccess.txt as .htaccess
$source = JPATH_ROOT.self::CGPATH .'/txt/htaccess.txt';
Expand Down

0 comments on commit b0f3827

Please sign in to comment.