Skip to content

Commit

Permalink
ModSecurity workaround for importer, chokes on import path
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgraham committed Jul 19, 2019
1 parent b2b6435 commit ea54c50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adminzone/pages/modules/admin_import.php
Expand Up @@ -382,7 +382,7 @@ public function choose_session2()
$url = build_url(array('page' => '_SELF', 'type' => 'hook', 'session' => $session, 'importer' => $importer), '_SELF'); $url = build_url(array('page' => '_SELF', 'type' => 'hook', 'session' => $session, 'importer' => $importer), '_SELF');
$message = array_key_exists('message', $info) ? $info['message'] : ''; $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')));
} }


/** /**
Expand All @@ -394,6 +394,9 @@ public function choose_session2()
*/ */
public function choose_actions($extra = '') public function choose_actions($extra = '')
{ {
require_code('input_filter_2');
modsecurity_workaround_enable();

$session = either_param_string('session', get_session_id()); $session = either_param_string('session', get_session_id());
$this->appropriate_import_session_to_current($session); $this->appropriate_import_session_to_current($session);


Expand Down

0 comments on commit ea54c50

Please sign in to comment.