aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-27 11:53:02 -0800
committerzotlabs <mike@macgirvin.com>2018-11-27 11:53:02 -0800
commit19e4f3c2f082278e524c463cce7ce0858a2258f8 (patch)
treece8e79b117175feb754eb88d79f39a4ce2096b36 /Zotlabs
parentc5a9b00eaec750e2983e0e46565b7305fe4ae27e (diff)
downloadvolse-hubzilla-19e4f3c2f082278e524c463cce7ce0858a2258f8.tar.gz
volse-hubzilla-19e4f3c2f082278e524c463cce7ce0858a2258f8.tar.bz2
volse-hubzilla-19e4f3c2f082278e524c463cce7ce0858a2258f8.zip
prevent incompatible export files (osada/zap) from being imported. This is to keep your DB from getting trashed. We probably need a similar thing for item import since the object formats aren't compatible
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Import.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Module/Import.php b/Zotlabs/Module/Import.php
index 6016328a5..0daf28aa9 100644
--- a/Zotlabs/Module/Import.php
+++ b/Zotlabs/Module/Import.php
@@ -127,6 +127,15 @@ class Import extends \Zotlabs\Web\Controller {
//
// }
+
+ // prevent incompatible osada or zap data from horking your database
+
+ if(array_path_exists('compatibility/codebase',$data)) {
+ notice('Data export format is not compatible with this software');
+ return;
+ }
+
+
if($moving)
$seize = 1;