Skip to content

runserver: 404 when dot character in clean URL path #752

@GarrettAlbright

Description

@GarrettAlbright

When using runserver, I noticed I was getting a PHP error from the server (not from Drupal) when attempting to go to a Memcache server report page with a path that looks like http://127.0.0.1:8888/admin/reports/memcache/default/127.0.0.1%3A11211 (%3A is an encoded colon character).

However, if I manually adjust the path to make it "dirty," like http://127.0.0.1:8888/index.php?q=admin/reports/memcache/default/127.0.0.1%3A11211, it works just fine.

I thought this might be an issue in runserver-prepend.php, but after some consternation, as far as I can tell, that file doesn't even execute whenever there's a period in the clean path. I can only assume that PHP is assuming that there's a file involved whenever it sees a dot in the path, looking for that file, then failing when it can't find it without giving the prepend file a chance to have a say in the matter.

I notice that we don't seem to be using a router file. Would it be possible to avoid this problem if we had one? I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions