Skip to content

Commit 3a9638f

Browse files
committed
Merge branch 'main' into release
2 parents 56faa76 + 9cb2ec1 commit 3a9638f

File tree

17 files changed

+47
-26
lines changed

17 files changed

+47
-26
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [1.6.4] - Service release
5+
6+
### Bugfixes
7+
8+
- Fixed an issue with downloading log files ()
9+
- Fixed an issue with installing Quick Installers (#2762, #2760, @divinity76)
10+
- Fixed an issue with Apache Access / Awstats logs IP after using v-update-sys-ip (#2759 @adion-gorani)
11+
412
## [1.6.3] - Service release
513

614
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Hestia Control Panel](https://www.hestiacp.com/)
44
==================================================
5-
**Latest stable release:** Version 1.6.3 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
5+
**Latest stable release:** Version 1.6.4 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
88
**Documentation:** [docs.hestiacp.com](https://docs.hestiacp.com/)<br>

bin/v-update-sys-ip

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ if [ ! -z "$new" ]; then
7272
sed -i "s/$old/$new/g" $HESTIA/data/users/$user/web.conf
7373
$BIN/v-rebuild-web-domains "$user" no
7474
done
75+
76+
if [ -e "/etc/apache2/mods-available/remoteip.conf" ]; then
77+
sed -i "s/$old/$new/g" /etc/apache2/mods-available/remoteip.conf
78+
fi
79+
80+
if [ -e "/etc/apache2/mods-enabled/rpaf.conf" ]; then
81+
sed -i "s/$old/$new/g" /etc/apache2/mods-enabled/rpaf.conf
82+
fi
83+
7584
$BIN/v-restart-proxy
7685
$BIN/v-restart-web
7786
fi

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.6.3'
34+
HESTIA_INSTALL_VER='1.6.4'
3535
# Dependencies
3636
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
3737
fpm_v="8.0"

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ HESTIA_INSTALL_DIR="$HESTIA/install/deb"
3131
VERBOSE='no'
3232

3333
# Define software versions
34-
HESTIA_INSTALL_VER='1.6.3'
34+
HESTIA_INSTALL_VER='1.6.4'
3535
# Dependencies
3636
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1")
3737
fpm_v="8.0"

src/deb/hestia/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia
22
Package: hestia
33
Priority: optional
4-
Version: 1.6.3
4+
Version: 1.6.4
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

web/api/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
//die("Error: Disabled");
3+
define('HESTIA_DIR_BIN', '/usr/local/hestia/bin/');
34
define('HESTIA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');
45

56
include($_SERVER['DOCUMENT_ROOT']."/inc/helpers.php");

web/download/web-log/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
$type = 'error';
2727
}
2828
$cmd = implode(" ", array(
29-
escapeshellarg(HESTIA_CMD . "v-list-web-domain-" . $type . "log"),
29+
'/usr/bin/sudo ' . escapeshellarg(HESTIA_DIR_BIN . "v-list-web-domain-" . $type . "log"),
3030
// $user is already shell-escaped
3131
$user,
3232
escapeshellarg($v_domain),
3333
"5000",
3434
));
35+
3536
passthru($cmd, $return_var);
3637
if ($return_var != 0) {
3738
$errstr = "Internal server error: command returned non-zero: {$return_var}: {$cmd}";

web/inc/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
require 'vendor/autoload.php';
1717

18+
define('HESTIA_DIR_BIN', '/usr/local/hestia/bin/');
1819
define('HESTIA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');
1920
define('DEFAULT_PHP_VERSION', 'php-' . exec('php -r "echo substr(phpversion(),0,3);"'));
2021

web/src/app/System/HestiaApp.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ public function __construct()
1616

1717
public function run(string $cmd, $args, &$cmd_result=null): bool
1818
{
19-
$cli_script = realpath(HESTIA_CMD . '/' . $cmd);
20-
if(!str_starts_with((string)$cli_script, HESTIA_CMD."/" )){
21-
$errstr = "$cmd is trying to traverse outside of " .HESTIA_CMD;
19+
$cli_script = realpath(HESTIA_DIR_BIN . $cmd);
20+
if (!str_starts_with((string) $cli_script, HESTIA_DIR_BIN)) {
21+
$errstr = "$cmd is trying to traverse outside of " . HESTIA_DIR_BIN;
2222
trigger_error($errstr);
23-
throw new \Exception($errstr);
23+
throw new \Exception($errstr);
2424
}
25-
$cli_script = escapeshellarg($cli_script);
26-
25+
$cli_script = '/usr/bin/sudo ' . escapeshellarg($cli_script);
26+
27+
$cli_arguments = '';
2728
if (!empty($args) && is_array($args)) {
2829
foreach ($args as $arg) {
2930
$cli_arguments .= escapeshellarg((string)$arg) . ' ';

0 commit comments

Comments
 (0)