Skip to content

Commit 7b74508

Browse files
committed
Webinformer is HTTPS now
Fixes #48
1 parent c48180e commit 7b74508

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/templates/forms/misc/ads_webinformer.txp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!gps('txpreview')) {
88

99
// Do not let them slow us down.
1010
$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';
1212

1313
$context = stream_context_create($opts);
1414
$widget = file_get_contents($url, false, $context);
@@ -54,13 +54,13 @@ if (!gps('txpreview')) {
5454
EOHTML;
5555

5656
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;
5858
}
5959

6060
// Hard-code the footer, since it's easier than trying to get innerHTML from DOMDocument.
6161
$out .= <<<EOHTML
6262
</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>
6464
EOHTML;
6565

6666
echo n,comment(date('c'));

src/templates/pages/default.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ foreach ($json->topic as $topic) {
245245
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>';
246246
}
247247
</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>
249249
</txp:etc_cache>
250250
</ul>
251251
<txp:output_form form="ads_webinformer" />

0 commit comments

Comments
 (0)