Provide alternatives to PHP module on the description page

Created on 23 June 2023, over 1 year ago
Updated 17 April 2024, 9 months ago

Problem/Motivation

The documentation page for the PHP module recommends using other methods and says such methods are available. Given that the alternatives are apparently known, it would be good if the page gave a few examples of such alternatives rather than leaving it to the reader to find them. This would be consistent with other documentation pages on Drupal.org which compare the module being documented to similar modules having different features.

Steps to reproduce

1. Go to https://www.drupal.org/project/php →
2. Read the warning.

Actual result: "Enabling this module can cause security and performance issues as it allows users to execute PHP code on your site. There are better alternatives out there that do not expose such vulnerabilities on your site."

Attempted work around:

3. Go to https://www.drupal.org/project/project_module →
4. Search on Works with Drupal 10 and Search modules "php"

Actual result: List of modules is not relevant to my trying to find a secure alternative to the PHP module

Proposed resolution

Follow the existing text:

Enabling this module can cause security and performance issues as it allows users to execute PHP code on your site. There are better alternatives out there that do not expose such vulnerabilities on your site.

with a list of a few secure alternatives to use of the PHP module. There is no need to evaluate them, but do give the module names and, if feasible, link to them.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Fixed

Version

1.1

Component

Documentation

Created by

🇺🇸United States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024