Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrefixAllGlobals: add "php" to the list of blacklisted prefixes #1785

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 31, 2019

The php prefix is reserved for PHP itself.

No unit tests added as the logic for this blacklist is already sufficiently unit tested.

Fixes #1728

The `php` prefix is reserved for PHP itself.

No unit tests added as the logic for this blacklist is already sufficiently unit tested.

Fixes 1728
@jrfnl jrfnl added Type: Enhancement Status: Review ready Focus: WP interoperability Doing things the WP way, prefer using WP functionality over userland/PHP native labels Jul 31, 2019
@jrfnl jrfnl added this to the 2.2.0 milestone Jul 31, 2019
@dingo-d dingo-d merged commit 45ecdf0 into develop Aug 1, 2019
@jrfnl jrfnl deleted the feature/1728-prefixallglobals-blacklist-php-prefix branch August 1, 2019 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: WP interoperability Doing things the WP way, prefer using WP functionality over userland/PHP native Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PrefixAllGlobals: prevent people from using "PHP" as a prefix
3 participants