* Thu Oct 16 2025 Brian Read <brianr@koozali.org> 11.1-15.sme

- Revert to 11.1-13 [SME: 13233]
- Add "\" to escape @ in SQL script for db init  [SME: 13233]
This commit is contained in:
2025-10-16 18:16:17 +01:00
parent 85433f5b07
commit 661e8b7a9d
3 changed files with 11 additions and 12 deletions

View File

@@ -16,9 +16,9 @@
Hour INT,
logData TEXT
);
CREATE USER {$user}@localhost IDENTIFIED BY '{$pass}';
GRANT SELECT, INSERT, UPDATE, DELETE ON $db.* TO {$user}@localhost;
CREATE USER $user\@localhost IDENTIFIED BY '$pass';
GRANT SELECT, INSERT, UPDATE, DELETE ON $db.* TO $user\@localhost;
FLUSH PRIVILEGES;
EOF
END
}
}

View File

@@ -236,8 +236,6 @@ sub do_display {
my $modul = "";
# Accessing all parameters
my %params = %{ $c->req->params->to_hash };
# Get number of parameters
@@ -246,10 +244,10 @@ sub do_display {
#Tag as Post or Get (ie. create new entry or edit existing one
my $is_new_record = ($c->req->method() eq 'POST');
Params are available in the hash "params" - copy to the prefix_data hash
while (my ($key, $value) = each %{$c->req->params->to_hash}) {
$mst_data{$key} = $value;
}
#Params are available in the hash "params" - copy to the prefix_data hash
#while (my ($key, $value) = each %{$c->req->params->to_hash}) {
# $mst_data{$key} = $value;
#}
# the value of trt will tell you which panel has returned
if (! $trt){