A free, self-hostable news aggregator…
API Compatbility Reeder (#3073)
Alexandre Alapetite5bb47918e352
diff --git a/p/api/greader.php b/p/api/greader.phpindex dfeb534fc..027662cc1 100644--- a/p/api/greader.php+++ b/p/api/greader.php@@ -343,7 +343,7 @@ function subscriptionEdit($streamNames, $titles, $action, $add = '', $remove = 'for ($i = count($streamNames) - 1; $i >= 0; $i--) {$streamUrl = $streamNames[$i]; //feed/http://example.net/sample.xml ; feed/338if (strpos($streamUrl, 'feed/') === 0) {- $streamUrl = substr($streamUrl, 5);+ $streamUrl = preg_replace('%^(feed/)+%', '', $streamUrl);$feedId = 0;if (ctype_digit($streamUrl)) {if ($action === 'subscribe') {