]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/emailauth.pm
Rebuild for jessie-backports, no source changes (Closes: #807452)
[git.ikiwiki.info.git] / IkiWiki / Plugin / emailauth.pm
index a739c2bc7a6ff661c1d40f20ac9c6d28ca751b21..a589199d3d85a2cac98800657224f778734e3500 100644 (file)
@@ -78,12 +78,14 @@ sub email_auth ($$$$) {
        
        eval q{use Mail::Sendmail};
        error($@) if $@;
+       my $shorturl=$config{url};
+       $shorturl=~s/^https?:\/\///i;
        sendmail(
                To => $email,
                From => "$config{wikiname} admin <".
                        (defined $config{adminemail} ? $config{adminemail} : "")
                        .">",
-               Subject => "$config{wikiname} login | ".$config{url},
+               Subject => "$config{wikiname} login | $shorturl",
                Message => $template->output,
        ) or error(gettext("Failed to send mail"));