> Drupal is one of those many CMSs that stores tons and tons of code in the database, including executable PHP.
This is horrifying. Why was this ever done?
This is horrifying. Why was this ever done?
Thankfully they removed this option in Drupal 8, the latest version. You could also restrict users from accessing the functionality so it wasn't that terrible. In practice few sites actually use the option, but when they do it can make troubleshooting a giant pain in the ass.
My projects had a patch to remove that entire module from core on each build.
Now which is easier—make a new module to serve this page or filter the output of that page, or just enable PHP code for this page, and write it directly in PHP on this page only?