Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
431 B

<?php
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Network\Probe;
use Friendica\Core\System;
/**
* Redirects to another URL based on the parameter 'addr'
*/
class Acctlink extends BaseModule
{
public static function content()
{
$addr = trim($_GET['addr'] ?? '');
if ($addr) {
$url = Probe::uri($addr)['url'] ?? '';
if ($url) {
System::externalRedirect($url);
exit();
}
}
}
}