diff --git a/root/etc/e-smith/events/actions/generate-email-sign b/root/etc/e-smith/events/actions/generate-email-sign index a5ea1ec..7c92e36 100644 --- a/root/etc/e-smith/events/actions/generate-email-sign +++ b/root/etc/e-smith/events/actions/generate-email-sign @@ -96,8 +96,8 @@ foreach my $user (@users){ my $street = $user->prop('Street') || ''; my $city = $user->prop('City') || ''; my $url = $user->prop('Url') || ''; - $url =~ s!^https?://!!; - $url =~ s!/$!!; + $url =~ s/^https?:\/\///; + $url =~ s/\/$//; my $template = $user->prop('SignatureTemplate') || "email"; my $addr = "$street $postalcode $city";