[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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