diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-12-03 11:08:39 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-12-03 11:08:39 +0100 |
commit | 9fcadc2d7c5a81547011d18d8e5e3d6b0475d50e (patch) | |
tree | ee85e1d40b69e7d1ce6b14cc999a37df5bfe0c04 /Zotlabs | |
parent | 9ef6c57ca59aa318a3564f6b48c6442870650d3e (diff) | |
download | volse-hubzilla-9fcadc2d7c5a81547011d18d8e5e3d6b0475d50e.tar.gz volse-hubzilla-9fcadc2d7c5a81547011d18d8e5e3d6b0475d50e.tar.bz2 volse-hubzilla-9fcadc2d7c5a81547011d18d8e5e3d6b0475d50e.zip |
prevent incompatible export files (osada/zap) from being imported (manual patch from dev)
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Import.php | 9 |
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; |