]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
(irssi-feed) Fix relative redirects Update info
authorCaesar <redacted>
Mon, 16 Sep 2013 12:01:45 +0000 (14:01 +0200)
committerbw1 <redacted>
Sat, 14 Apr 2018 17:19:51 +0000 (19:19 +0200)
scripts/irssi-feed.pl

index 31086b7798e0ec7a6845dbbee155c9b97fd8190f..8628174893680d46a112665426fcaa64ed657151 100644 (file)
@@ -20,10 +20,10 @@ use List::Util qw(min);
 use IO::Socket::INET;
 use Errno;
 use Getopt::Long qw(GetOptionsFromString);
-our $VERSION = "20130209";
+our $VERSION = "20130916";
 our %IRSSI = (
        authors     => 'Julius Michaelis',
-       contact     => 'iRRSi@cserv.dyndns.org', # see also: JCaesar on freenode, probably idling in #irssi
+       contact     => 'iRRSi@liftm.de', # see also: JCaesar on freenode, probably idling in #irssi
        name        => 'iRSSi feed reader',
        description => 'Parses and announces XML/Atom feeds',
        license     => 'GPLv3',
@@ -324,7 +324,7 @@ sub feed_parse_buffer {
        my $http = HTTP::Response->parse($feed->{io}->{buffer});
        if($http->is_redirect) {
                my $location = $http->header('Location');
-               my $uri = URI->new($location);
+               my $uri = URI->new($location, $feed->{uri});
                if($location) {
                        feedprint('Feed ' . feed_stringrepr($feed) . ' got redirected to ' . $location);
                        $feed->{uri} = $uri;
git clone https://git.99rst.org/PROJECT