Executing arbitrary PHP has no place in a UI, any custom code should be version controlled and not user input. A separate contrib module could be provided as legacy support.

Comments

drumm created an issue. See original summary.

drumm’s picture

Status: Active » Needs review
StatusFileSize
new3.64 KB
gifad’s picture

I agree that, like any feature involving php code, explicit permission should be granted.
This is actually done by the Actions permission module.
Patch at Unexpected behaviour of "Execute arbitrary PHP script" action makes script action dependant on actions permissions enabled.

bojanz’s picture

This is a dangerous action we inherited from the D6 version, but I'm afraid that removing it this late in the release cycle would cause a riot.