Skip to content

[3.0 & 2.1]: strtr(): Argument #1 ($string) must be of type string, array given #9173

@sbulen

Description

@sbulen

Basic Information

Bots monkeying with URLs can trigger errors. I've seen several variants of this, but the primary one is when an array is indicated in the URL, e.g.:
https://yadayada/84van21/index.php?language[%24eq]=english

2.1.7, Load.php, line 941.

Bots doing this can flood your SMF log with errors. Can't have that.

Error confirmed in both 2.1 & 3.0.

Steps to reproduce

1.Use the URL indicated above.
2.

Expected result

Spurious URL ignored.

Actual result

SMF error log flooded with errors

Version/Git revision

2.1.7

Database Engine

All

Database Version

8.4.4

PHP Version

8.4.5

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions