]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
notags calls
[friendica.git] / mod / openid.php
index d1404ba804f4afec2f65de81db24d96a7ec9ff4e..663bc1cecbae0a44142e9771ee0bb42202b78486 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\Util\Strings;
 
 function openid_content(App $a) {
 
@@ -74,16 +75,16 @@ function openid_content(App $a) {
                        if (is_array($attr) && count($attr)) {
                                foreach ($attr as $k => $v) {
                                        if ($k === 'namePerson/friendly') {
-                                               $nick = notags(trim($v));
+                                               $nick = Strings::removeTags(trim($v));
                                        }
                                        if($k === 'namePerson/first') {
-                                               $first = notags(trim($v));
+                                               $first = Strings::removeTags(trim($v));
                                        }
                                        if($k === 'namePerson') {
-                                               $args .= '&username=' . urlencode(notags(trim($v)));
+                                               $args .= '&username=' . urlencode(Strings::removeTags(trim($v)));
                                        }
                                        if ($k === 'contact/email') {
-                                               $args .= '&email=' . urlencode(notags(trim($v)));
+                                               $args .= '&email=' . urlencode(Strings::removeTags(trim($v)));
                                        }
                                        if ($k === 'media/image/aspect11') {
                                                $photosq = bin2hex(trim($v));
@@ -107,7 +108,7 @@ function openid_content(App $a) {
                                $args .= '&photo=' . urlencode($photo);
                        }
 
-                       $args .= '&openid_url=' . urlencode(notags(trim($authid)));
+                       $args .= '&openid_url=' . urlencode(Strings::removeTags(trim($authid)));
 
                        $a->internalRedirect('register?' . $args);