Author: Jim Winstead (jimwins)
Date: 2024-08-23T17:45:50-07:00
Commit:
https://github.com/php/web-news/commit/0d1ce6919d20acc1dc61ca87f3f7ee346b535592
Raw diff:
https://github.com/php/web-news/commit/0d1ce6919d20acc1dc61ca87f3f7ee346b535592.diff
Fix NNTP_HOST displayed when it's localhost like on news-web.php.net
Changed paths:
M index.php
Diff:
diff --git a/index.php b/index.php
index 2458aa4..36c2738 100644
--- a/index.php
+++ b/index.php
@@ -17,6 +17,7 @@
head();
+$DISPLAY_NNTP_HOST = htmlspecialchars(($NNTP_HOST == 'localhost') ?
'news.php.net' : $NNTP_HOST);
?>
<nav class="secondary-nav">
@@ -32,8 +33,8 @@
<p>
The PHP project collaborates across a number of mailing lists. The archives
are available through this site as well as <a
href="http://marc.info/">MARC</a>.
- They are also available via NNTP at <a href="news://<?=
htmlspecialchars($NNTP_HOST) ?>">
- <?= htmlspecialchars($NNTP_HOST) ?></a>.
+ They are also available via NNTP at <a href="news://<?= $DISPLAY_NNTP_HOST
?>">
+ <?= $DISPLAY_NNTP_HOST ?></a>.
</p>
<p>
Instructions for subscribing to active lists by email can be found on the
page