? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
31 Dec 2021

Pull Request for Issue #36501 fixes regression from my PR #36442

Summary of Changes

Only parameters can be passed by reference - doh.

Testing Instructions

Create an article with an email address in it - view article on frontend

Actual result BEFORE applying this Pull Request

PlgContentEmailcloak::_cloak(): Argument #1 ($text) cannot be passed by reference

Expected result AFTER applying this Pull Request

Article loads fine.

Documentation Changes Required

None

avatar PhilETaylor PhilETaylor - change - 31 Dec 2021
Status New Pending
avatar PhilETaylor PhilETaylor - open - 31 Dec 2021
avatar joomla-cms-bot joomla-cms-bot - change - 31 Dec 2021
Category Front End Plugins
avatar xillibit
xillibit - comment - 31 Dec 2021

I have tested this item successfully on 75a58d8

Tested works now


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36505.

avatar xillibit xillibit - test_item - 31 Dec 2021 - Tested successfully
435572b 31 Dec 2021 avatar PhilETaylor cs
avatar PhilETaylor PhilETaylor - change - 31 Dec 2021
Labels Added: ?
avatar bembelimen bembelimen - test_item - 31 Dec 2021 - Tested unsuccessfully
avatar bembelimen
bembelimen - comment - 31 Dec 2021

I have tested this item ? unsuccessfully on 435572b

The problem is, that you assign the text to the $text variable, so there is no reference to the original object anymore. This means, emails will not be "encrypted" (yeah, I know...).

Test case

Insert an email into an article (without linking)

Expected result

Email encrypted and linked

Current result

Email just plain text

Solution

Revert to old code

if (is_object($row))
{
	$this->_cloak($row->text, $params);

	return;
}

$this->_cloak($row, $params);

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36505.
avatar PhilETaylor
PhilETaylor - comment - 31 Dec 2021

Makes sense - thanks.

avatar PhilETaylor
PhilETaylor - comment - 1 Jan 2022

ready for testing again.
Thanks @chmst

avatar chmst
chmst - comment - 1 Jan 2022

I have tested this item successfully on 1ab93f3

Tested in 4.1 beta3, php 8.0.14. Everything fine now, the E-mail address is "encrypted", accessibility checker does not complain :)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36505.

avatar chmst chmst - test_item - 1 Jan 2022 - Tested successfully
avatar Kostelano
Kostelano - comment - 1 Jan 2022

I have tested this item successfully on 1ab93f3

Thank you, it works.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36505.

avatar Kostelano Kostelano - test_item - 1 Jan 2022 - Tested successfully
avatar chmst chmst - change - 1 Jan 2022
Status Pending Ready to Commit
avatar chmst
chmst - comment - 1 Jan 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36505.

avatar bembelimen bembelimen - close - 1 Jan 2022
avatar bembelimen bembelimen - merge - 1 Jan 2022
avatar bembelimen bembelimen - change - 1 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-01 09:54:58
Closed_By bembelimen
Labels Added: ?
avatar bembelimen
bembelimen - comment - 1 Jan 2022

Thx

Add a Comment

Login with GitHub to post a comment