Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Android Empty hosts result in all prefixes being accepted #255

@joeldhenry

Description

@joeldhenry

If you leave host & prefix 2-5 blank, it accepts all prefixes by default:

<intent-filter android:autoVerify="true">
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:host="domain.com" android:pathPrefix="/path" android:scheme="https" />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
</intent-filter>

meaning that anything on domain.com/ will be accepted, rather than just domain.com/path

related to #229
and #165

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions