diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-07-02 10:47:33 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-07-02 10:47:33 +0000 |
commit | a8875509fe5400ab2a90db661917354293e7577b (patch) | |
tree | 87c7a592e48cdacdf39c14f3e1f5eddd6303897b /parse-wiki | |
parent | 85d674dea907a0924214f6fc481100712faccdeb (diff) |
Handle lenny moinmoin mails
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@403 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'parse-wiki')
-rwxr-xr-x | parse-wiki | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -88,9 +88,10 @@ my $url; my $from; my @lines = split(/\n/, $body); while (defined($line = shift @lines)) { - if ($line =~ m/^The following page has been changed by (.*):/) { + if ($line =~ m/^The .* page has been changed by (.*):/) { $from = $1; - $url = shift @lines + $url = shift @lines; + $url =~ s/\?.*//; } elsif ($line =~ m/^The comment on the change is:/) { $message = shift @lines; last; |