Strip http:// or https:// at the begening and / at the end of the Url prop in the signature

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 11 years ago
parent 343f38a889
commit fdc5adc4ab
  1. 2
      root/etc/e-smith/events/actions/generate-email-sign

@ -96,6 +96,8 @@ foreach my $user (@users){
my $street = $user->prop('Street') || ''; my $street = $user->prop('Street') || '';
my $city = $user->prop('City') || ''; my $city = $user->prop('City') || '';
my $url = $user->prop('Url') || ''; my $url = $user->prop('Url') || '';
$url =~ s!^https?://!!;
$url =~ s!/$!!;
my $template = $user->prop('SignatureTemplate') || "email"; my $template = $user->prop('SignatureTemplate') || "email";
my $addr = "$street $postalcode $city"; my $addr = "$street $postalcode $city";

Loading…
Cancel
Save