minutils / feed-on-feeds

Released in 2003, saw the rise and fall of Google Reader, reached perfection in 2011
http://feedonfeeds.com/
GNU General Public License v2.0
14 stars 9 forks source link

Missing server port in shared feed link #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In case server port isn't 80, shared feed link is wrong.
Modification in shared.php 

$server_port = $_SERVER['SERVER_PORT'] != 80 ? ':' .
$_SERVER['SERVER_PORT'] : '';
$shared_feed = htmlspecialchars("http://" . $_SERVER['SERVER_NAME'] .
$server_port . $_SERVER['PHP_SELF'] . "?user=$user&format=atom");
$shared_link = htmlspecialchars("http://" . $_SERVER['SERVER_NAME'] .
$server_port . $_SERVER['PHP_SELF'] . "?user=$user");

Original issue reported on code.google.com by dangquan...@gmail.com on 22 Jun 2009 at 11:24