mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 08:28:46 +00:00
[VkBridge] Follow changes on HTTP redirection (#3051)
When visiting canonical link like https://vk.com/club1, VK returns redirection response to non-canical link, which raises "Unexpected redirect location" exception. This patch removes path check in order to handle this situation
This commit is contained in:
parent
f660c16ca6
commit
6cd8b90d28
@ -446,7 +446,7 @@ class VkBridge extends BridgeAbstract
|
|||||||
returnServerError('VK responded "Too many requests"');
|
returnServerError('VK responded "Too many requests"');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preg_match('#^https?://vk.com/(club|public)#', $uri)) {
|
if (!preg_match('#^https?://vk.com/#', $uri)) {
|
||||||
returnServerError('Unexpected redirect location');
|
returnServerError('Unexpected redirect location');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user