Modify

Opened 5 years ago

Closed 5 years ago

#1935 closed Bug/Fehler (fixed)

System-Modul exclude_payment: zu viele Parameter an Funktion

Reported by: Volker Strähle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.6.0
Component: Admin Version: 2.0.5.1
Keywords: Cc:
Blocked By: Blocking:

Description

module_export.php, zca. Zeile 508:

} else {
    eval('$keys .= ' . $value['set_function'] . "'" . encode_htmlspecialchars($value['value'], ENT_QUOTES) . "', '" . $key . "');");
}

Dazu in der Tabelle configuration wird etwa für MODULE_EXCLUDE_PAYMENT_PAYMENT_x die folgende Set-Funktion eingetragen:

'xtc_cfg_checkbox_unallowed_module(\'payment\', \'MODULE_EXCLUDE_PAYMENT_PAYMENT_".$i."\','

Damit wird etwa folgender Code für eval erzeugt:

$keys .= xtc_cfg_checkbox_unallowed_module('payment', 'MODULE_EXCLUDE_PAYMENT_PAYMENT_1','cash', 'MODULE_EXCLUDE_PAYMENT_PAYMENT_1');

Das ist ein Methoden-Aufruf mit 4 Pararmetern. Die Methode hat aber nur 3.

/**
   * xtc_cfg_checkbox_unallowed_module()
   *
   * @author rpa-com.de
   * @date 2013-09-29
   * @param string $module_type like payment, shipping
   * @param string $checkbox_name is database field
   * @param string $data is database field data
   *
   * @return string html checkboxes by configuration set_function
   */
  function xtc_cfg_checkbox_unallowed_module($module_type,$checkbox_name,$data)


Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 5 years ago

Milestone: modified-shop-2.0.7.0modified-shop-2.0.6.0

comment:2 by Gerhard Waldemair, 5 years ago

Resolution: fixed
Status: newclosed

In 13101:

fix #1935 - fix exclude_payment.php system module

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.