98_GoogleAuth.pm: fix iOS problem if label contains spaces

git-svn-id: https://svn.fhem.de/fhem/trunk@13090 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2017-01-15 15:19:42 +00:00
parent 43ce0e0ce2
commit c4cb4c2103

View File

@@ -189,6 +189,7 @@ sub GoogleAuth_Summary($$$$) {
sub _ga_make_url($) {
my ($name) = @_;
my $label = AttrVal($name,'ga_labelName',"FHEM Authentication $name");
$label =~ s/\s/\%20/g;
my $qrsize = AttrVal($name,'ga_qrSize','200x200');
my $secret_base32 = getKeyValue("googleAuth$name");
return undef unless defined($secret_base32);