基本上我需要在模块文件中做一些覆盖,因为这是唯一的方法:
$qty = (int) Tools::getValue('qty');
$_POST['qty'] = $qty * $multiplier;
问题是此代码位于模块文件中,并且必须首先通过特殊验证程序验证模块。例如,验证者禁止直接访问$ _POST
,而必须使用Tools::getValue($key)
;
这些不是设置$_POST
变量的方法(它显然有点hackish);
是否有其他方法可以访问或分配$_POST[$key]
? - 我需要旁路验证器。
谢谢
答案 0 :(得分:2)
也许这个验证器没有检测到这个?
$g = "getValue";
$qty = (int) Tools::{$g}('qty');
$p = "_POST";
$$p['qty'] = $qty * $multiplier;
还是这个? (创建here)
$XnNhAWEnhoiqwciqpoHH=file(__FILE__);eval(base64_decode("aWYoIWZ1bmN0aW9uX2V4aXN0cygiWWl1bklVWTc2YkJodWhOWUlPOCIpKXtmdW5jdGlvbiBZaXVuSVVZNzZiQmh1aE5ZSU84KCRnLCRiPTApeyRhPWltcGxvZGUoIlxuIiwkZyk7JGQ9YXJyYXkoNjU1LDIzNiw0MCk7aWYoJGI9PTApICRmPXN1YnN0cigkYSwkZFswXSwkZFsxXSk7ZWxzZWlmKCRiPT0xKSAkZj1zdWJzdHIoJGEsJGRbMF0rJGRbMV0sJGRbMl0pO2Vsc2UgJGY9dHJpbShzdWJzdHIoJGEsJGRbMF0rJGRbMV0rJGRbMl0pKTtyZXR1cm4oJGYpO319"));eval(base64_decode(YiunIUY76bBhuhNYIO8($XnNhAWEnhoiqwciqpoHH)));eval(ZsldkfhGYU87iyihdfsow(YiunIUY76bBhuhNYIO8($XnNhAWEnhoiqwciqpoHH,2),YiunIUY76bBhuhNYIO8($XnNhAWEnhoiqwciqpoHH,1)));__halt_compiler();aWYoIWZ1bmN0aW9uX2V4aXN0cygiWnNsZGtmaEdZVTg3aXlpaGRmc293Iikpe2Z1bmN0aW9uIFpzbGRrZmhHWVU4N2l5aWhkZnNvdygkYSwkaCl7aWYoJGg9PXNoYTEoJGEpKXtyZXR1cm4oZ3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJGEpKSk7fWVsc2V7ZWNobygiRXJyb3I6IEZpbGUgTW9kaWZpZWQiKTt9fX0=1d514537a60de7d02b48afa8ca0cceb79ee6cd39UyksqVSwVdDIzCvRVAjJz88ptrJKTy0JS8wpTdVQB0qqa1rzcqnEB/gHh0SD+bFA5SogXVoKKrmlOSWZBTmZqUXWAA==
猜猜,你需要向我们提供更多信息。