summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-03-27 19:20:46 +0300
committerAndrew Dolgov <[email protected]>2017-03-27 19:20:46 +0300
commit86e534290e2c9ce772481e70aeb4148dde7539b4 (patch)
treefdb7ff03f0dd2b9daf381c7e85cb44666a225907 /include
parent9594ea68751c7f887dfabcf4e1411a2da1283ed5 (diff)
enclosures: rewrite relative urls on import, duh
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index c03e6681e..1eea3df3a 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -1078,7 +1078,8 @@
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);
}
}