mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix two issues (php notice level) with html/rss.php
- Undefined index: HTTPS in rss.php on line 8 - Undefined property: RSSCreator20::$cssStyleSheet in feedcreator.class.php on line 591 Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
4a24bca069
commit
4c9da512af
1 changed files with 3 additions and 1 deletions
|
@ -5,10 +5,12 @@ include_once("aur.inc");
|
|||
include_once("feedcreator.class.php");
|
||||
|
||||
#detect prefix
|
||||
$protocol = $_SERVER["HTTPS"]=='on' ? "https" : "http";
|
||||
$protocol = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=='on' ? "https" : "http";
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$rss = new RSSCreator20();
|
||||
$rss->cssStyleSheet = false;
|
||||
$rss->xslStyleSheet = false;
|
||||
|
||||
# Use UTF-8 (fixes FS#10706).
|
||||
$rss->encoding = "UTF-8";
|
||||
|
|
Loading…
Add table
Reference in a new issue