X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuimport.php;h=937a16710a9211214547600da5555b4d13134d69;hb=05f71f4a701ece84cb435e7e9a37cc52ae7ce0d6;hp=b8439ee0944c8192fec2557134db68c234f09bcb;hpb=9eca83e29c6f292ab4d95d90789df06bf8d04d34;p=friendica.git diff --git a/include/uimport.php b/include/uimport.php index b8439ee094..937a16710a 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) { @@ -194,10 +195,10 @@ function import_account(&$a, $file) { // send relocate message (below) break; case NETWORK_ZOT: - // TODO handle zot network + /// @TODO handle zot network break; case NETWORK_MAIL2: - // TODO ? + /// @TODO ? break; case NETWORK_FEED: case NETWORK_MAIL: @@ -286,7 +287,7 @@ function import_account(&$a, $file) { } // send relocate messages - proc_run('php', 'include/notifier.php', 'relocate', $newuid); + proc_run(PRIORITY_HIGH, 'include/notifier.php', 'relocate', $newuid); info(t("Done. You can now login with your username and password")); goaway($a->get_baseurl() . "/login");