User tests: Successful: Unsuccessful:
Pull Request for Issue #36501 fixes regression from my PR #36442
Only parameters can be passed by reference - doh.
Create an article with an email address in it - view article on frontend
PlgContentEmailcloak::_cloak(): Argument #1 ($text) cannot be passed by reference
Article loads fine.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
I have tested this item
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...).
Insert an email into an article (without linking)
Email encrypted and linked
Email just plain text
Revert to old code
if (is_object($row))
{
$this->_cloak($row->text, $params);
return;
}
$this->_cloak($row, $params);
Makes sense - thanks.
I have tested this item
Tested in 4.1 beta3, php 8.0.14. Everything fine now, the E-mail address is "encrypted", accessibility checker does not complain :)
I have tested this item
Thank you, it works.
Status | Pending | ⇒ | Ready to Commit |
RTC
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:
?
|
Thx
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.