aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-06-20 22:46:27 +0200
committerGravatar GitHub <noreply@github.com> 2020-06-20 22:46:27 +0200
commit5bb47918e352c193dbc111be1f3d8d4fb4897eab (patch)
treefcbcf0188afe247555901f4d4dd1cfeaef945115 /p
parentb9d2e6457a30afea844780ea53944ad7cc81fc6b (diff)
API Compatbility Reeder (#3073)
#fix https://github.com/FreshRSS/FreshRSS/issues/3031#issuecomment-646973334 Reeder sends e.g. `feed/feed/247`
Diffstat (limited to 'p')
-rw-r--r--p/api/greader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index 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/338
if (strpos($streamUrl, 'feed/') === 0) {
- $streamUrl = substr($streamUrl, 5);
+ $streamUrl = preg_replace('%^(feed/)+%', '', $streamUrl);
$feedId = 0;
if (ctype_digit($streamUrl)) {
if ($action === 'subscribe') {