Skip to content

Commit

Permalink
Use http or https as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangille committed Nov 2, 2017
1 parent 05e5433 commit 3fa8ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/backend/watch-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ function DisplayWatchListNewsFeeds($db, $UserID) {
}

$HTML = '';
$Protocol = isset($_SERVER['HTTPS']) ? 'https' : 'http';

if ($NumRows) {
for ($i = 0; $i < $NumRows; $i++) {
$WatchList = $WatchLists->FetchNth($i);
$URL = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?id=' . $WatchList->token . '&format=rss0.91';
$URL = $Protocol . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?id=' . $WatchList->token . '&format=rss0.91';
$HTML .= '<a href="' . $URL . '">' . $WatchList->name . '</a><br>';
}
}
Expand Down

0 comments on commit 3fa8ff3

Please sign in to comment.