mirror of
https://github.com/friendica/friendica
synced 2024-11-13 15:42:54 +00:00
26 lines
406 B
PHP
26 lines
406 B
PHP
<?php
|
|
|
|
namespace Friendica\Module;
|
|
|
|
use Friendica\BaseModule;
|
|
use Friendica\Network\Probe;
|
|
|
|
/**
|
|
* Redirects to another URL based on the parameter 'addr'
|
|
*/
|
|
class Acctlink extends BaseModule
|
|
{
|
|
public static function content()
|
|
{
|
|
$addr = defaults($_REQUEST, 'addr', false);
|
|
|
|
if ($addr) {
|
|
$url = defaults(Probe::uri($addr), 'url', false);
|
|
|
|
if ($url) {
|
|
goaway($url);
|
|
exit();
|
|
}
|
|
}
|
|
}
|
|
}
|