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 , 5 years ago
| Milestone: | modified-shop-2.0.7.0 → modified-shop-2.0.6.0 |
|---|
comment:2 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 13101: