X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuimport.php;h=78471af1514461d33cdef9a13f7b1e5bd31503e8;hb=3af7cff281d0a0af6759340684adb75723b34071;hp=b8439ee0944c8192fec2557134db68c234f09bcb;hpb=9eca83e29c6f292ab4d95d90789df06bf8d04d34;p=friendica.git diff --git a/include/uimport.php b/include/uimport.php index b8439ee094..78471af151 100644 --- a/include/uimport.php +++ b/include/uimport.php @@ -157,7 +157,8 @@ function import_account(&$a, $file) { //~ $newuid = 1; // Generate a new guid for the account. Otherwise there will be problems with diaspora - q("UPDATE `user` SET `guid` = '%s' WHERE `uid` = %d", generate_user_guid(), $newuid); + q("UPDATE `user` SET `guid` = '%s' WHERE `uid` = %d", + dbesc(generate_user_guid()), intval($newuid)); foreach ($account['profile'] as &$profile) { foreach ($profile as $k => &$v) {