X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Frssaction.php;h=dac7fa4606e8d4fa5563f4229b10fc8a22b5a275;hb=33e2f5b449d477e55bda7029f9e826d889e41eb5;hp=f366db97293241a849784956f37ff3063cc12390;hpb=762731d8ee2ff2b8a8aa0c6f92335dd802baf536;p=quix0rs-gnu-social.git diff --git a/lib/rssaction.php b/lib/rssaction.php index f366db9729..dac7fa4606 100644 --- a/lib/rssaction.php +++ b/lib/rssaction.php @@ -34,7 +34,7 @@ define('DEFAULT_RSS_LIMIT', 48); class Rss10Action extends Action { - # This will contain the details of each feed item's author and be used to generate SIOC data. + // This will contain the details of each feed item's author and be used to generate SIOC data. var $creators = array(); var $limit = DEFAULT_RSS_LIMIT; @@ -88,10 +88,10 @@ class Rss10Action extends Action if (common_config('site', 'private')) { if (!isset($_SERVER['PHP_AUTH_USER'])) { - # This header makes basic auth go + // This header makes basic auth go header('WWW-Authenticate: Basic realm="StatusNet RSS"'); - # If the user hits cancel -- bam! + // If the user hits cancel -- bam! $this->show_basic_auth_error(); return; } else { @@ -99,7 +99,7 @@ class Rss10Action extends Action $password = $_SERVER['PHP_AUTH_PW']; if (!common_check_user($nickname, $password)) { - # basic authentication failed + // basic authentication failed list($proxy, $ip) = common_client_ip(); common_log(LOG_WARNING, "Failed RSS auth attempt, nickname = $nickname, proxy = $proxy, ip = $ip.");