API: Better compatibility with Apache/PHP-CGI

https://github.com/marienfressinaud/FreshRSS/issues/443#issuecomment-37226210
This commit is contained in:
Alexandre Alapetite committed 2014-03-10 21:06:58 +01:00
1 parent 608b3a8656
commit ab1bec28c2
2 files changed
+5

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
+1
View File
@@ -526,6 +526,7 @@ function markAllAsRead($streamId, $olderThanId) {
}
logMe('----------------------------------------------------------------'."\n");
//logMe(debugInfo());
$pathInfo = empty($_SERVER['PATH_INFO']) ? '/Error' : urldecode($_SERVER['PATH_INFO']);
$pathInfos = explode('/', $pathInfo);