1
0
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:
Eugene Molotov
2022-09-20 21:07:31 +05:00
committed by GitHub
parent f660c16ca6
commit 6cd8b90d28

View File

@@ -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');
}