Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pcambra created an issue. See original summary.

pcambra’s picture

Status: Active » Needs review

I think branch 2.1 should drop D9 support or maybe a 2.2 for this?

anybody’s picture

Status: Needs review » Needs work

@pcambra thanks! strpos exists since PHP5 so I don't think it needs conditions?

But instead we could now use str_contains, see #3324560: Replace strpos/substr with str_starts_with() / str_contains() / str_ends_with()
What do you think?

Also doesn't need the if, because Drupal 10 requires at least PHP 8.1. PHP 8.1. 6 is recommended!

anybody’s picture

Status: Needs work » Needs review

@pcambra I updated the MR accordingly.
Maybe you'd like to apply as co-maintainer in this module?

pcambra’s picture

Not sure how to do that tbh :) but I could adopt it if there's no activity

vishal choudhary’s picture

Status: Needs review » Reviewed & tested by the community

I reviewed the code in src/Plugin/Filter/ObfuscateEmail.php.

The change in commit 63fcb9e8 that replaces stripos() / stristr() with str_contains() is working as expected, and I did not find any issues during testing.

Based on my review, this issue can be moved to RTBC.

anybody’s picture

  • b_sharpe committed 19fe7efc on 2.1.x authored by pcambra
    Issue #3555975: Use stripos for mailto detection when available.
    
b_sharpe’s picture

Status: Reviewed & tested by the community » Fixed

Thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.