mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-20 12:03:02 -04:00
API Compatbility Reeder (#3073)
#fix https://github.com/FreshRSS/FreshRSS/issues/3031#issuecomment-646973334 Reeder sends e.g. `feed/feed/247`
This commit is contained in:
committed by
GitHub
parent
b9d2e6457a
commit
5bb47918e3
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user