diff --git a/root/usr/share/smanager/lib/SrvMngr/Controller/Webhosting.pm b/root/usr/share/smanager/lib/SrvMngr/Controller/Webhosting.pm index d47a86d..1dfd377 100644 --- a/root/usr/share/smanager/lib/SrvMngr/Controller/Webhosting.pm +++ b/root/usr/share/smanager/lib/SrvMngr/Controller/Webhosting.pm @@ -19,9 +19,9 @@ use Locale::gettext; use SrvMngr::I18N; use SrvMngr qw( theme_list init_session is_normal_password ); -use esmith::AccountsDB; -use esmith::ConfigDB; -use esmith::DomainsDB; +use esmith::AccountsDB::UTF8; +use esmith::ConfigDB::UTF8; +use esmith::DomainsDB::UTF8; use esmith::php; my ($adb,$cdb); @@ -80,8 +80,8 @@ our %optionsproperties =( sub main { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; - $cdb = esmith::ConfigDB->open() || die "Couldn't open config db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; + $cdb = esmith::ConfigDB::UTF8->open() || die "Couldn't open config db"; my $c = shift; $c->app->log->info($c->log_req); @@ -101,8 +101,8 @@ sub main { sub do_display { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; - $cdb = esmith::ConfigDB->open() || die "Couldn't open config db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; + $cdb = esmith::ConfigDB::UTF8->open() || die "Couldn't open config db"; my $c = shift; $c->app->log->info($c->log_req); @@ -212,8 +212,8 @@ sub do_action { sub modify_ibay { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; - $cdb = esmith::ConfigDB->open() || die "Couldn't open config db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; + $cdb = esmith::ConfigDB::UTF8->open() || die "Couldn't open config db"; my ($c, $name) = @_; @@ -296,8 +296,8 @@ sub modify_ibay { sub get_current_value{ - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; - $cdb = esmith::ConfigDB->open() || die "Couldn't open config db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; + $cdb = esmith::ConfigDB::UTF8->open() || die "Couldn't open config db"; my ($c, $name, $property) = @_; my $ibay = $adb->get($name); my $key = $ibay->key; @@ -339,7 +339,7 @@ sub validate_up_post{ sub get_current_php_value { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; my ($c, $name) = @_; my $ibay= $adb->get($name); return "default" unless defined $ibay->prop('PHPVersion'); @@ -367,7 +367,7 @@ sub get_php_options { sub print_options { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; my ($c, $property) = @_; @@ -393,7 +393,7 @@ sub print_options { sub print_disabledfunctions { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; my ($c) = @_; my $translate = $c->l('wh_DESC_DISABLEDFUNCTIONS'); @@ -406,7 +406,7 @@ sub print_disabledfunctions { sub print_phpbasedir { - $adb = esmith::AccountsDB->open() || die "Couldn't open accounts db"; + $adb = esmith::AccountsDB::UTF8->open() || die "Couldn't open accounts db"; my ($c) = @_; my $translate = $c->l('wh_DESC_PHPBASEDIR'); diff --git a/smeserver-webhosting.spec b/smeserver-webhosting.spec index 271ddd2..fbdd840 100644 --- a/smeserver-webhosting.spec +++ b/smeserver-webhosting.spec @@ -1,6 +1,6 @@ %define name smeserver-webhosting %define version 11.0.0 -%define release 5 +%define release 6 Name: %{name} Version: %{version} @@ -50,6 +50,9 @@ rm -rf %{name}-%{version} %defattr(-,root,root) %changelog +* Tue Oct 07 2025 Brian Read 11.0.0-6.sme +- Add UTF8 and avoid potential DB caching problems [SME: 13209] + * Sat Oct 04 2025 Brian Read 11.0.0-5.sme - Remove smanager-refresh from spec file [SME: 13212]