Skip to content

router "/aa/:name" can match "/aa.xml/aa.xml" #4946

Closed
@runner361

Description

if strings.HasSuffix(seg, str) && strings.HasSuffix(treePattern, seg) {

This modification is still not sufficient,for router “/v1/yangeryl/:name” url like "/v1/yangeryl.xml/yangeryl.xml" can also be matched
image

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