]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Curl Response Refactoring
[friendica.git] / mod / openid.php
index 449db73955198557c994246ad1d57c5a0caa8d47..63b29684b3c5eded4a1fa651470a76ee192dc8b5 100644 (file)
@@ -19,7 +19,7 @@ function openid_content(App $a) {
 
        if((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) {
 
-               $openid = new LightOpenID($a->get_hostname());
+               $openid = new LightOpenID($a->getHostName());
 
                if($openid->validate()) {
 
@@ -41,7 +41,7 @@ function openid_content(App $a) {
                                AND `blocked` = 0 AND `account_expired` = 0
                                AND `account_removed` = 0 AND `verified` = 1
                                LIMIT 1",
-                               dbesc($authid), dbesc(normalise_openid($authid))
+                               DBA::escape($authid), DBA::escape(normalise_openid($authid))
                        );
 
                        if (DBA::isResult($r)) {