ezyang / ezyang/htmlpurifier

deprecated get_magic_quotes_gpc

Open
#275 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.4k
Forks
361
Avg merge
3d 41m
Merged PRs (30d)
2

Description

PHP 7.4 threw a deprecation error on one of my uses of get_magic_quotes_gpc(). When I searched the code to see where else it was used, I found it on library/HTMLPurifier/Config.php:806 (version 4.13.0).

I didn't get the error on HTMLPurifier, so this is just a courtesy notice.

See https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative

Thank you

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at library/HTMLPurifier/Config.php:806 and inspect how get_magic_quotes_gpc() is used in the configuration flow. Check the PHP 7.4 deprecation behavior and existing compatibility patterns; done means the deprecated call is addressed without changing HTMLPurifier's configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.