]> git.wh0rd.org - tt-rss.git/commitdiff
enclosures: rewrite relative urls on import, duh
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 27 Mar 2017 16:20:46 +0000 (19:20 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 27 Mar 2017 16:20:46 +0000 (19:20 +0300)
include/rssfuncs.php

index c03e6681e0e1b9c2128f265e2aa06948f16eb7a9..1eea3df3a5626c9a316b6077f1d52d098e9a7f25 100644 (file)
                                if (is_array($encs)) {
                                        foreach ($encs as $e) {
                                                $e_item = array(
-                                                       $e->link, $e->type, $e->length, $e->title, $e->width, $e->height);
+                                                       rewrite_relative_url($site_url, $e->link),
+                                                       $e->type, $e->length, $e->title, $e->width, $e->height);
                                                array_push($enclosures, $e_item);
                                        }
                                }