diff --git a/rss.php b/rss.php index bd46dde..cca3f58 100644 --- a/rss.php +++ b/rss.php @@ -41,9 +41,12 @@ require_once(KT_LIB_DIR .'/authentication/authenticationutil.inc.php'); require_once(KT_DIR. '/plugins/rssplugin/KTrss.inc.php'); // Workaround for mod_auth when running php cgi -list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); +if(!isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['HTTP_AUTHORIZATION'])){ + list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); +} // workaround to get http authentication working in cgi mode +// * older workaround - doesn't seem to be working now * $altinfo = KTUtil::arrayGet( $_SERVER, 'kt_auth', KTUtil::arrayGet( $_SERVER, 'REDIRECT_kt_auth')); if ( !empty( $altinfo) && !isset( $_SERVER['PHP_AUTH_USER'])) { $val = $altinfo;