summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorelij <elij.mx@gmail.com>2011-05-28 23:28:59 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-05-29 15:57:45 +0200
commit4c9da512af0456d61016144f7bb4bd5f775d6c12 (patch)
treef276dfd6c61657f50f825b574a95773c1047b050 /web
parent4a24bca069edc2830fc17ab27ba54560435b778b (diff)
downloadaur-4c9da512af0456d61016144f7bb4bd5f775d6c12.tar.gz
aur-4c9da512af0456d61016144f7bb4bd5f775d6c12.tar.xz
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>
Diffstat (limited to 'web')
-rw-r--r--web/html/rss.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/html/rss.php b/web/html/rss.php
index 05478154..d0a202b8 100644
--- a/web/html/rss.php
+++ b/web/html/rss.php
@@ -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";