@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PHPMailer: Remove check for non-existing get_magic_quotes()

Summary: No idea if PHP ever offered such a method. In any case, this very check was removed in https://github.com/PHPMailer/PHPMailer/commit/6f919df65e80023fce4eab58832b6035b4a41935#diff-2d294eae28fb0d70fc32da8369c4fe33d301c99ca3eeb4bd41da18ad99344d68 in 2012.

Test Plan: Not sure - how to test a removed check for a method which does not exist anyway? :)

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25663

-10
-5
externals/phpmailer/class.phpmailer-lite.php
··· 1311 1311 if (!is_readable($path)) { 1312 1312 throw new phpmailerException($this->Lang('file_open') . $path, self::STOP_CONTINUE); 1313 1313 } 1314 - if (function_exists('get_magic_quotes')) { 1315 - function get_magic_quotes() { 1316 - return false; 1317 - } 1318 - } 1319 1314 if (PHP_VERSION < 6) { 1320 1315 $magic_quotes = get_magic_quotes_runtime(); 1321 1316 set_magic_quotes_runtime(0);
-5
externals/phpmailer/class.phpmailer.php
··· 1443 1443 if (!is_readable($path)) { 1444 1444 throw new phpmailerException($this->Lang('file_open') . $path, self::STOP_CONTINUE); 1445 1445 } 1446 - if (function_exists('get_magic_quotes')) { 1447 - function get_magic_quotes() { 1448 - return false; 1449 - } 1450 - } 1451 1446 if (PHP_VERSION < 6) { 1452 1447 $magic_quotes = get_magic_quotes_runtime(); 1453 1448 set_magic_quotes_runtime(0);