-
After a new installation in my hosting, I'm getting this alert: /e107/e107_handlers/menumanager_class.php generic.eval.file.get.contents.1 I guess that the alert it's been generated because of the use of the function eval(), is there any update planed to solve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are currently no plans to address the malware alert, which is a false positive. The
There isn't an easy way to import legacy |
Beta Was this translation helpful? Give feedback.
There are currently no plans to address the malware alert, which is a false positive.
The
file_get_contents()
/eval()
combination was introduced in 6531a68 as a workaround for loading the unstructured code of legacy themes'theme.php
.file_get_contents()
followed byeval()
is indeed a common malware pattern, but in the case of./e107_handlers/menumanager_class.php
, it's mostly a suboptimal way to cope with parsing legacy themes.There isn't an easy way to import legacy
theme.php
files in a way compatible with the Menu Manager. One possibility could be to write a compiler using PHP Parser that preprocesses oldtheme.php
files to isolate$LAYOUT
,$HEADER
, and/or$FOOTER
into a data structure…