* Mon Oct 06 2025 Brian Read <brianr@koozali.org> 11.0.0-2.sme
- Add UTF8 and avoid potential DB caching problems [SME: 13209]
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
#
|
#
|
||||||
use esmith::util;
|
use esmith::util;
|
||||||
use esmith::util::network;
|
use esmith::util::network;
|
||||||
use esmith::ConfigDB;
|
use esmith::ConfigDB::UTF8;
|
||||||
use esmith::HostsDB;
|
use esmith::HostsDB::UTF8;
|
||||||
use esmith::AccountsDB;
|
use esmith::AccountsDB::UTF8;
|
||||||
use esmith::NetworksDB;
|
use esmith::NetworksDB;
|
||||||
use esmith::DomainsDB;
|
use esmith::DomainsDB::UTF8;
|
||||||
|
|
||||||
use constant FALSE => 0;
|
use constant FALSE => 0;
|
||||||
use constant TRUE => 1;
|
use constant TRUE => 1;
|
||||||
@@ -82,7 +82,7 @@ my $adb;
|
|||||||
# Return a hash with the fields required which will be loaded into the shared data
|
# Return a hash with the fields required which will be loaded into the shared data
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
my $user = $c->param('Selected');
|
my $user = $c->param('Selected');
|
||||||
$adb = esmith::AccountsDB->open();
|
$adb = esmith::AccountsDB::UTF8->open();
|
||||||
#die("$user");
|
#die("$user");
|
||||||
$userrec = $adb->get($user) || return ('Account' => "$user not found");
|
$userrec = $adb->get($user) || return ('Account' => "$user not found");
|
||||||
|
|
||||||
@@ -122,8 +122,8 @@ my $adb;
|
|||||||
sub actual_getAllUsers {
|
sub actual_getAllUsers {
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
# Actual code for extracting getAllUsers
|
# Actual code for extracting getAllUsers
|
||||||
$cdb = esmith::ConfigDB->open();
|
$cdb = esmith::ConfigDB::UTF8->open();
|
||||||
$adb = esmith::AccountsDB->open();
|
$adb = esmith::AccountsDB::UTF8->open();
|
||||||
my @data = ();
|
my @data = ();
|
||||||
my @users = $adb->users;
|
my @users = $adb->users;
|
||||||
|
|
||||||
@@ -322,7 +322,7 @@ sub userpanel_change_settings
|
|||||||
my $VPNClientAccess = $c->param ('VPNClientAccess');
|
my $VPNClientAccess = $c->param ('VPNClientAccess');
|
||||||
my $ChrootDir = $c->param ('ChrootDir');
|
my $ChrootDir = $c->param ('ChrootDir');
|
||||||
my $ChrootDir2 = $c->param ('ChrootDir2');
|
my $ChrootDir2 = $c->param ('ChrootDir2');
|
||||||
$adb = esmith::AccountsDB->open();
|
$adb = esmith::AccountsDB::UTF8->open();
|
||||||
|
|
||||||
my $user = $c->param('Selected');
|
my $user = $c->param('Selected');
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ Summary: Smeserver module to configure Shell and FTP access for individual users
|
|||||||
%define name smeserver-remoteuseraccess
|
%define name smeserver-remoteuseraccess
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 1
|
%define release 2
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GNU GPL version 2
|
License: GNU GPL version 2
|
||||||
@@ -38,6 +38,9 @@ Also sets Chroots FTP access, VPN Client Access,
|
|||||||
and allows you to enter ssh keys
|
and allows you to enter ssh keys
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 06 2025 Brian Read <brianr@koozali.org> 11.0.0-2.sme
|
||||||
|
- Add UTF8 and avoid potential DB caching problems [SME: 13209]
|
||||||
|
|
||||||
* Mon May 19 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
|
* Mon May 19 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
|
||||||
- Add in SM2 panels
|
- Add in SM2 panels
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user