mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Renamed AcctLink to Acctlink
This commit is contained in:
parent
508032cf9a
commit
3f729df258
1 changed files with 2 additions and 2 deletions
26
src/Module/Acctlink.php
Normal file
26
src/Module/Acctlink.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue