Since I’m short of time, could you add and test that option? I think something like “apply_filters(‘hefo_php_exec’, true)” and if the result is false, the eval is suppressed.
Stefano.
@satollo
Thanks for you quick reply and willingness to add this. The following worked for me:
# plugin.php:hefo_wp_head_post()
if (apply_filters('hefo_php_exec', true)) {
ob_start();
eval('?>' . $buffer);
ob_end_flush();
} else {
echo $buffer;
}
# plugin.php:hefo_wp_footer()
if (apply_filters('hefo_php_exec', true)) {
ob_start();
eval('?>' . $buffer);
ob_end_flush();
} else {
echo $buffer;
}
# plugin.php:hefo_execute()
if (apply_filters('hefo_php_exec', true)) {
ob_start();
eval('?>' . $buffer);
$buffer = ob_get_clean();
}
return $buffer;
# options.php:371
<p>
<?php
if (apply_filters('hefo_php_exec', true)) {
_e('PHP is allowed on textareas below.');
} else {
_e('PHP is not allowed on textareas below.');
}
?>
</p>
Then in my theme:
add_filter( 'hefo_php_exec', create_function('',"return false;"));
Perfect, Release the version 3.0.7. It’s a bit late hope that version has no errors :-).
Stefano.