X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopenid.php;h=af7016c32b0dcd640566685786345f1e840026d3;hb=e74f186b3488dfe2eb607f21f7f3c53e8a392333;hp=ce707c4150b1195dd84572bf79cacc99cc7221de;hpb=d2280d4120ca09ff5f3013e961a1f43bb5244cc6;p=friendica.git diff --git a/mod/openid.php b/mod/openid.php index ce707c4150..af7016c32b 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -1,14 +1,19 @@ config['register_policy'] == REGISTER_CLOSED) { - notice( t('Account not found and OpenID registration is not permitted on this site.') . EOL); - goaway(z_root()); + notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL); + goaway(System::baseUrl()); } unset($_SESSION['register']); @@ -73,10 +79,10 @@ function openid_content(App &$a) { $first = notags(trim($v)); } if($k === 'namePerson') { - $args .= '&username=' . notags(trim($v)); + $args .= '&username=' . urlencode(notags(trim($v))); } if ($k === 'contact/email') { - $args .= '&email=' . notags(trim($v)); + $args .= '&email=' . urlencode(notags(trim($v))); } if ($k === 'media/image/aspect11') { $photosq = bin2hex(trim($v)); @@ -87,27 +93,27 @@ function openid_content(App &$a) { } } if ($nick) { - $args .= '&nickname=' . $nick; + $args .= '&nickname=' . urlencode($nick); } elseif ($first) { - $args .= '&nickname=' . $first; + $args .= '&nickname=' . urlencode($first); } if ($photosq) { - $args .= '&photo=' . $photosq; + $args .= '&photo=' . urlencode($photosq); } elseif ($photo) { - $args .= '&photo=' . $photo; + $args .= '&photo=' . urlencode($photo); } - $args .= '&openid_url=' . notags(trim($authid)); + $args .= '&openid_url=' . urlencode(notags(trim($authid))); - goaway(App::get_baseurl() . '/register' . $args); + goaway(System::baseUrl() . '/register?' . $args); // NOTREACHED } } - notice( t('Login failed.') . EOL); - goaway(z_root()); + notice(L10n::t('Login failed.') . EOL); + goaway(System::baseUrl()); // NOTREACHED }