From f150483b5abafe36f63821457e7867373dc7c49d Mon Sep 17 00:00:00 2001 From: Chip Black Date: Sun, 24 Nov 2013 00:07:36 -0600 Subject: [PATCH] Add apache Authorization header hack --- rss.cgi | 1 - www-configs/htaccess | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rss.cgi b/rss.cgi index 11e1982..3bc6172 100755 --- a/rss.cgi +++ b/rss.cgi @@ -19,7 +19,6 @@ sub xml_escape { sub decode_basic_auth { my ($q) = @_; - my $authorization = my ($method, $base64) = split(/\s+/, $q->http('Authorization')); if (!defined $method) { return; diff --git a/www-configs/htaccess b/www-configs/htaccess index 2587f51..5c9f416 100644 --- a/www-configs/htaccess +++ b/www-configs/htaccess @@ -15,3 +15,7 @@ RewriteRule ^feedinfo(.*) /blerg.cgi/feedinfo$1 [L] RewriteRule ^passwd$ /blerg.cgi/passwd [L] RewriteRule ^rss/(.*) /rss.cgi/$1 [L] + +# If your web server isn't passing the Authorization header, uncomment +# this hack to work around it. +#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] -- 2.25.1