mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-29 12:50:18 +02: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:
@@ -446,7 +446,7 @@ class VkBridge extends BridgeAbstract
|
||||
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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user