[aur-dev] [PATCH 1/1] fix two issues (php notice level) with html/rss.php

elij elij.mx at gmail.com
Sat May 28 17:28:59 EDT 2011


- Undefined index: HTTPS in rss.php on line 8
- Undefined property: RSSCreator20::$cssStyleSheet in
  feedcreator.class.php on line 591
---
 web/html/rss.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/web/html/rss.php b/web/html/rss.php
index 0547815..d0a202b 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";
-- 
1.7.2.5



More information about the aur-dev mailing list