Page MenuHomePhorge

Fix call to undefined method PhutilJSON::encodeAsObject()
ClosedPublic

Authored by aklapper on Aug 14 2023, 20:56.
Tags
None
Referenced Files
F3294812: D25391.1742944021.diff
Mon, Mar 24, 23:07
F3280477: D25391.1742652813.diff
Fri, Mar 21, 14:13
F3250320: D25391.1742299516.diff
Mon, Mar 17, 12:05
F3225062: D25391.1742090335.diff
Sat, Mar 15, 01:58
F3220773: D25391.1741813111.diff
Tue, Mar 11, 20:58
F3220771: D25391.1741813110.diff
Tue, Mar 11, 20:58
F3220770: D25391.1741813109.diff
Tue, Mar 11, 20:58
F3041326: D25391.1740951714.diff
Sat, Mar 1, 21:41

Details

Summary

Replace call to undefined method PhutilJSON::encodeAsObject() with existing PhutilJSON::encodeFormatted()

EXCEPTION: (Error) Call to undefined method PhutilJSON::encodeAsObject() at [<phabricator>/src/applications/transactions/xaction/PhabricatorEditEngineDefaultTransaction.php:68]

Closes T15603

Test Plan

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Thanks for this. I need a double-check since I'm quite scared by the background of this root problem but fortunately this seems to have just one occurrence, the one you are fixing.

The origin seems this:

https://secure.phabricator.com/D20595

And this in particular:

https://secure.phabricator.com/D20594

Also let's verify XSS and this kind of stuff

Thanks for this change that looks absolutely reasonable.

Please wait a $random_amount_of_time (more than 1 second and less than 1 month) before landing this so we can attract more professssssssional opinions

This revision is now accepted and ready to land.Aug 15 2023, 07:30