mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue