]> git.mxchange.org Git - friendica.git/blobdiff - include/uimport.php
Merge pull request #2149 from annando/issue-1921
[friendica.git] / include / uimport.php
index b8439ee0944c8192fec2557134db68c234f09bcb..78471af1514461d33cdef9a13f7b1e5bd31503e8 100644 (file)
@@ -157,7 +157,8 @@ function import_account(&$a, $file) {
        //~ $newuid = 1;\r
 \r
        // Generate a new guid for the account. Otherwise there will be problems with diaspora\r
-       q("UPDATE `user` SET `guid` = '%s' WHERE `uid` = %d", generate_user_guid(), $newuid);\r
+       q("UPDATE `user` SET `guid` = '%s' WHERE `uid` = %d",\r
+               dbesc(generate_user_guid()), intval($newuid));\r
 \r
        foreach ($account['profile'] as &$profile) {\r
                foreach ($profile as $k => &$v) {\r