Urlencode query parameters

pull/3384/head
Sandro Santilli 2017-04-23 13:48:46 +02:00
rodzic ebc926a716
commit cd521b2dcc
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -73,10 +73,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,20 +87,20 @@ 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);