mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 16:44:26 +02:00
fix undeclared variables or wrong variable names (/src)
This commit is contained in:
parent
7e15a9f0f5
commit
342b9af734
8 changed files with 15 additions and 7 deletions
|
@ -370,6 +370,9 @@ class Network
|
|||
|
||||
if ($http_code == 301 || $http_code == 302 || $http_code == 303 || $http_code == 307) {
|
||||
$matches = [];
|
||||
$new_location_info = @parse_url($curl_info['redirect_url']);
|
||||
$old_location_info = @parse_url($curl_info['url']);
|
||||
|
||||
preg_match('/(Location:|URI:)(.*?)\n/', $header, $matches);
|
||||
$newurl = trim(array_pop($matches));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue