aboutcode-org / aboutcode-org/python-publicsuffix2

Mislabeling of eTLD-`n`

Đang mở
#23 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
30
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

As mentioned in https://github.com/publicsuffix/list/pull/1872#issuecomment-1863614188

Multiple `psl` libraries share the same bug while handling wildcards.

> I went over all the FOSS implementations in https://publicsuffix.org/learn/ , and I found 3 of them behave funny for `wildcard` domains. In particular:
>
> * [regdom-libs](https://github.com/usrflo/registered-domain-libs/)
> * [publicsuffix2](https://pypi.python.org/pypi/publicsuffix2/)
> * [publicsuffixlist.js](https://github.com/gorhill/publicsuffixlist.js)
>
> Seems to all mislabel eTLD-`n` `x` [eTLD minus `n`] (with n from `0` to `infinite`), as an eTLD, if another eTLD `y` is defined as a subdomain of that `x` eTLD-`n`.
>
> As an example `publicsuffix2` behaviour with the following patch:
>
> ```
> // Linode : https://linode.com
> // Submitted by
> members.linode.com
> -nodebalancer.linode.com
> +*.nodebalancer.linode.com
> +*.linodeobjects.com
> +ip.linodeusercontent.com
> ```

Example here:

![291734330-d38c352b-b420-45fb-93dc-438ebbea2f02](https://github.com/nexB/python-publicsuffix2/assets/581115/ed4c1e46-3272-4d30-9c82-ddae33752f74)

This bug has already been reported in this library [here](https://github.com/nexB/python-publicsuffix2/issues/21)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.