aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Import.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-01 21:43:54 +0100
committerMario Vavti <mario@mariovavti.com>2018-12-01 21:43:54 +0100
commitfdb04592887bd9bb804ee63ac320d04fe0968a80 (patch)
treef3228e53a96eee6a5218f4b04a5949e54c62180b /Zotlabs/Module/Import.php
parentcded6b11366e15d6d4ac3eb6d9f86f4d0a60fa7c (diff)
parent6f22e47febdfb46494a0e1681e3eabdbd00fe72b (diff)
downloadvolse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.tar.gz
volse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.tar.bz2
volse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Import.php')
-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;