From d8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 23 Mar 2014 15:15:20 -0700 Subject: allow authtest to accept webbies as well as urls since I'm always trying to use the former and of course it always fails. --- mod/authtest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod') diff --git a/mod/authtest.php b/mod/authtest.php index 3044a880b..b6d940db2 100644 --- a/mod/authtest.php +++ b/mod/authtest.php @@ -21,6 +21,10 @@ function authtest_content(&$a) { $o .= '

'; if(x($_GET,'dest')) { + if(strpos($_GET['dest'],'@')) { + $_GET['dest'] = $_REQUEST['dest'] = 'https://' . substr($_GET['dest'],strpos($_GET['dest'],'@')+1) . '/channel/' . substr($_GET['dest'],0,strpos($_GET['dest'],'@')); + } + $_REQUEST['test'] = 1; $x = magic_init($a); $o .= 'Local Setup returns: ' . print_r($x,true); -- cgit v1.2.3