aboutsummaryrefslogtreecommitdiffstats
path: root/mod/authtest.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 15:15:20 -0700
committerfriendica <info@friendica.com>2014-03-23 15:15:20 -0700
commitd8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56 (patch)
tree0cc4eb87181734273939893e1dcf362e5d2de17d /mod/authtest.php
parentfb5f9fd9be94874dc2825bff9f9c1bc8d53baff4 (diff)
downloadvolse-hubzilla-d8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56.tar.gz
volse-hubzilla-d8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56.tar.bz2
volse-hubzilla-d8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56.zip
allow authtest to accept webbies as well as urls since I'm always trying to use the former and of course it always fails.
Diffstat (limited to 'mod/authtest.php')
-rw-r--r--mod/authtest.php4
1 files changed, 4 insertions, 0 deletions
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 .= '<br /><br />';
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);