Commit 47d5307b authored by Dietmar Maurer's avatar Dietmar Maurer

trim subscription key to avoid unexpected errors.

People normally use cut&paste, and that often adds unexpected white space
characters. So we simply remove them for convenience.
parent 0c8e7af7
......@@ -375,6 +375,8 @@ __PACKAGE__->register_method ({
code => sub {
my ($param) = @_;
$param->{key} = PVE::Tools::trim($param->{key});
my $info = {
status => 'New',
key => $param->{key},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment