Skip to content

_is_mobile() returns raw strpos result, not a strict boolean #670

@Zodiac1978

Description

@Zodiac1978

If match occurs at position x (int), the function returns x (and not true/false), which is a logic bug:
https://github.com/pluginkollektiv/antispam-bee/blob/master/antispam_bee.php#L2258-L2268

It works, because PHP interprets 0 as false and any int as true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions