[web-news] master: Show the correct NNTP hostname, which may not be the HTTP host (#19)

From: Date: Thu, 18 Jul 2024 19:08:42 +0000
Subject: [web-news] master: Show the correct NNTP hostname, which may not be the HTTP host (#19)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31828@lists.php.net to get a copy of this message
Author: Jim Winstead (jimwins) Committer: GitHub (web-flow) Pusher: Girgias Date: 2024-07-18T20:08:38+01:00 Commit: https://github.com/php/web-news/commit/878cf71f85c796f4464786bd7272a7302b6179f7 Raw diff: https://github.com/php/web-news/commit/878cf71f85c796f4464786bd7272a7302b6179f7.diff Show the correct NNTP hostname, which may not be the HTTP host (#19) Changed paths: M index.php Diff: diff --git a/index.php b/index.php index 6a67768..324a191 100644 --- a/index.php +++ b/index.php @@ -30,8 +30,8 @@ <h1>PHP Mailing Lists</h1> <p> This is a completely experimental interface to the PHP mailing lists as - reflected on the <a href="news://<?php echo htmlspecialchars($_SERVER['HTTP_HOST'],ENT_QUOTES,"UTF-8"); ?>/"> - <?php echo htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES, "UTF-8"); ?> NNTP server</a>. + reflected on the <a href="news://<?php echo htmlspecialchars(NNTP_HOST,ENT_QUOTES,"UTF-8"); ?>/"> + <?php echo htmlspecialchars(NNTP_HOST, ENT_QUOTES, "UTF-8"); ?> NNTP server</a>. The news server software that is used is <a href="https://trainedmonkey.com/projects/colobus/">colobus</a>. </p>

« previous php.webmaster (#31828) next »