Skip to content
Permalink
Browse files

ModSecurity workaround for importer, chokes on import path

  • Loading branch information...
chrisgraham committed Jul 19, 2019
1 parent b2b6435 commit ea54c50ed774b48c2fa441e524454377ee098b80
Showing with 4 additions and 1 deletion.
  1. +4 −1 adminzone/pages/modules/admin_import.php
@@ -382,7 +382,7 @@ public function choose_session2()
$url = build_url(array('page' => '_SELF', 'type' => 'hook', 'session' => $session, 'importer' => $importer), '_SELF');
$message = array_key_exists('message', $info) ? $info['message'] : '';
return do_template('FORM_SCREEN', array('_GUID' => '15f2c855acf0d365a2e6329bec692dc8', 'TEXT' => $message, 'TITLE' => $this->title, 'FIELDS' => $fields, 'URL' => $url, 'HIDDEN' => '', 'SUBMIT_ICON' => 'buttons__proceed', 'SUBMIT_NAME' => do_lang_tempcode('PROCEED')));
return do_template('FORM_SCREEN', array('_GUID' => '15f2c855acf0d365a2e6329bec692dc8', 'MODSECURITY_WORKAROUND' => true, 'TEXT' => $message, 'TITLE' => $this->title, 'FIELDS' => $fields, 'URL' => $url, 'HIDDEN' => '', 'SUBMIT_ICON' => 'buttons__proceed', 'SUBMIT_NAME' => do_lang_tempcode('PROCEED')));
}
/**
@@ -394,6 +394,9 @@ public function choose_session2()
*/
public function choose_actions($extra = '')
{
require_code('input_filter_2');
modsecurity_workaround_enable();
$session = either_param_string('session', get_session_id());
$this->appropriate_import_session_to_current($session);

0 comments on commit ea54c50

Please sign in to comment.
You can’t perform that action at this time.