File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (!gps('txpreview')) {
8
8
9
9
// Do not let them slow us down.
10
10
$opts = array('http' => array('timeout' => 1.6));
11
- $url = 'http ://website.informer.com/w/textpatternwidget.php';
11
+ $url = 'https ://website.informer.com/w/textpatternwidget.php';
12
12
13
13
$context = stream_context_create($opts);
14
14
$widget = file_get_contents($url, false, $context);
@@ -54,13 +54,13 @@ if (!gps('txpreview')) {
54
54
EOHTML;
55
55
56
56
foreach ($linkInfo as $row) {
57
- $out .= '<li><a rel="external" href="'.$row['href'].'">'.$row['content'].'</a></li>'.n;
57
+ $out .= '<li><a rel="external" referrerpolicy="origin" href="'.$row['href'].'">'.$row['content'].'</a></li>'.n;
58
58
}
59
59
60
60
// Hard-code the footer, since it's easier than trying to get innerHTML from DOMDocument.
61
61
$out .= <<<EOHTML
62
62
</ul>
63
- <small>Powered by <a rel="external" href="http ://website.informer.com/">website.informer.com</a></small>
63
+ <small>Powered by <a rel="external" href="https ://website.informer.com/">website.informer.com</a></small>
64
64
EOHTML;
65
65
66
66
echo n,comment(date('c'));
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ foreach ($json->topic as $topic) {
245
245
echo '<li><a href="'.htmlspecialchars($topic->link).'">'.htmlspecialchars($topic->title).'</a> <small class="block">by '.htmlspecialchars($topic->author->name).' on <time datetime="'.htmlspecialchars($topic->postedutc).'">'.htmlspecialchars($topic->posted).'</time></small></li>';
246
246
}
247
247
</txp:php>
248
- <txp:linklist category="paid-links-content" break="li"><a rel="external" href="<txp:link_url />"><txp:link_name /></a> <small>(Ad)</small></txp:linklist>
248
+ <txp:linklist category="paid-links-content" break="li"><a rel="external" referrerpolicy="origin" href="<txp:link_url />"><txp:link_name /></a> <small>(Ad)</small></txp:linklist>
249
249
</txp:etc_cache>
250
250
</ul>
251
251
<txp:output_form form="ads_webinformer" />
You can’t perform that action at this time.
0 commit comments