diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-30 21:05:31 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-30 21:05:31 -0700 |
commit | c4f5d17db6796b071435069ef7138a145b04cbd4 (patch) | |
tree | 466cb6db781ed5dd5677928743cd519936e0cf52 /Zotlabs/Module/Import.php | |
parent | d1a018f2e8330fbf49ade51ec94fe5d7eb475d57 (diff) | |
parent | 81736a01299f7c963e361e9b192df074999d16d8 (diff) | |
download | volse-hubzilla-c4f5d17db6796b071435069ef7138a145b04cbd4.tar.gz volse-hubzilla-c4f5d17db6796b071435069ef7138a145b04cbd4.tar.bz2 volse-hubzilla-c4f5d17db6796b071435069ef7138a145b04cbd4.zip |
Merge branch 'importcsrf' of https://github.com/dawnbreak/hubzilla into csrf
Diffstat (limited to 'Zotlabs/Module/Import.php')
-rw-r--r-- | Zotlabs/Module/Import.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Import.php b/Zotlabs/Module/Import.php index b98c9be9b..54bc7de81 100644 --- a/Zotlabs/Module/Import.php +++ b/Zotlabs/Module/Import.php @@ -478,6 +478,8 @@ class Import extends \Zotlabs\Web\Controller { if(! $account_id) return; + check_form_security_token_redirectOnErr('/import', 'channel_import'); + $this->import_account($account_id); } @@ -508,6 +510,7 @@ class Import extends \Zotlabs\Web\Controller { '$pleasewait' => t('This process may take several minutes to complete. Please submit the form only once and leave this page open until finished.'), '$email' => '', '$pass' => '', + '$form_security_token' => get_form_security_token('channel_import'), '$submit' => t('Submit') )); |