diff --git a/config.php.example b/config.php.example index 0280ded..31808ca 100644 --- a/config.php.example +++ b/config.php.example @@ -40,7 +40,7 @@ $friends_autoblog_farm = array( 'https://raw.github.com/mitsukarenai/xsaf-bootstrap/master/3.json', // 'https://www.ecirtam.net/autoblogs/?export', - // 'https://autoblog.suumitsu.eu/?export', + // 'http://autoblog.suumitsu.eu/?export', // 'http://streisand.hoa.ro/?export', ); ?> diff --git a/xsaf3.php b/xsaf3.php index 63c9571..ae10ae4 100755 --- a/xsaf3.php +++ b/xsaf3.php @@ -120,7 +120,7 @@ function xsafimport($xsafremote, $max_exec_time) { $json_media_import = file_get_contents($remote_media); if(DEBUG) debug($json_media_import); - if(!empty($json_media_import) && !strpos($json_media_import, '[]}')) + if(!empty($json_media_import) && !strpos($json_media_import, '[]}') && json_decode($json_media_import) !== null) { file_put_contents('./'. $foldername .'/import.json', $json_media_import); }