ezyang / ezyang/htmlpurifier

htmlpurifier uses deprecated get_magic_quotes_gpc

Open
#274 1 comment 2 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

Open library/HTMLPurifier/Config.php around line 806 and inspect the use of get_magic_quotes_gpc(). Check the PHP 7.4 deprecation behavior and determine the supported replacement or compatibility handling. Done means the deprecated call is no longer used while the existing configuration behavior remains intact.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.