diff --git a/classes/feeds.php b/classes/feeds.php
index a41109383..6b96d8364 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -398,7 +398,7 @@ class Feeds extends Handler_Protected {
alt=\"Publish article\" onclick='togglePub($id)'>";
}
-# $content_link = "" .
+# $content_link = "" .
# $line["title"] . "";
# $content_link = "
".
$line["title"] .
" ";
@@ -691,13 +691,13 @@ class Feeds extends Handler_Protected {
$tmp_line = $this->dbh->fetch_assoc($tmp_result);
- $reply['content'] .= "" .
$tmp_line['title'] . "";
$reply['content'] .= " ";
- $reply['content'] .= "";
+ $reply['content'] .= "";
$reply['content'] .= "
";
$reply['content'] .= "";
@@ -746,12 +746,12 @@ class Feeds extends Handler_Protected {
$comments_url = htmlspecialchars($line["link"]);
}
$entry_comments = "$num_comments ".
+ target='_blank' rel='noopener noreferrer' href=\"$comments_url\">$num_comments ".
_ngettext("comment", "comments", $num_comments)."";
} else {
if ($line["comments"] && $line["link"] != $line["comments"]) {
- $entry_comments = "".__("comments")."";
+ $entry_comments = "".__("comments")."";
}
}
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 9a7ab55a0..ece9e8078 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -776,7 +776,7 @@ class Pref_Prefs extends Handler_Protected {
print "
";
@@ -87,12 +87,12 @@
$archived = '';
}
- $site_url = "
".
htmlspecialchars($line["title"])."";
- $feed_url = "
";
diff --git a/include/functions2.php b/include/functions2.php
index d490ae50c..96274b6a0 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -955,6 +955,7 @@
$a->appendChild(new DOMText($entry->getAttribute('src')));
$a->setAttribute('target', '_blank');
+ $a->setAttribute('rel', 'noopener noreferrer');
$p->appendChild($a);
@@ -964,6 +965,7 @@
if (strtolower($entry->nodeName) == "a") {
$entry->setAttribute("target", "_blank");
+ $entry->setAttribute("rel", "noopener noreferrer");
}
}
@@ -1249,7 +1251,7 @@
";
}
- if ($entry) $entry .= " " . basename($url) . "";
return $entry;
@@ -1260,7 +1262,7 @@
/* $filename = substr($url, strrpos($url, "/")+1);
- $entry .= " " .
+ $entry .= " " .
$filename . " (" . $ctype . ")" . ""; */
}
@@ -1332,12 +1334,12 @@
$comments_url = htmlspecialchars($line["link"]);
}
$entry_comments = "$num_comments ".
+ target='_blank' rel=\"noopener noreferrer\" href=\"$comments_url\">$num_comments ".
_ngettext("comment", "comments", $num_comments)."";
} else {
if ($line["comments"] && $line["link"] != $line["comments"]) {
- $entry_comments = "".__("comments")."";
+ $entry_comments = "".__("comments")."";
}
}
@@ -1373,7 +1375,7 @@
$rv['content'] .= "
";
$rv['content'] .= "