aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index b87387bd7..dfeb534fc 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -912,6 +912,7 @@ function markAllAsRead($streamId, $olderThanId) {
}
$pathInfo = empty($_SERVER['PATH_INFO']) ? '' : urldecode($_SERVER['PATH_INFO']);
+$pathInfo = preg_replace('%^(/api)?(/greader\.php)?%', '', $pathInfo); //Discard common errors
if ($pathInfo == '') {
exit('OK');
}