Title: IPv4 validator accepts any number of 0's in a segment · Issue #190 · python-validators/validators · GitHub
Open Graph Title: IPv4 validator accepts any number of 0's in a segment · Issue #190 · python-validators/validators
X Title: IPv4 validator accepts any number of 0's in a segment · Issue #190 · python-validators/validators
Description: Version: 0.18.2 The ipv4 validator only tests that: The number of dot-delimited groups is 4 Each group represents a 'digit' The value of each digit is >= 0 & < 256 Therefore a segment can contain as many zeroes as you like, and it'll sti...
Open Graph Description: Version: 0.18.2 The ipv4 validator only tests that: The number of dot-delimited groups is 4 Each group represents a 'digit' The value of each digit is >= 0 & < 256 Therefore a segment can contain a...
X Description: Version: 0.18.2 The ipv4 validator only tests that: The number of dot-delimited groups is 4 Each group represents a 'digit' The value of each digit is >= 0 & < 256 Therefore a seg...
Opengraph URL: https://github.com/python-validators/validators/issues/190
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IPv4 validator accepts any number of 0's in a segment","articleBody":"**Version: 0.18.2**\r\n\r\nThe `ipv4` validator only tests that:\r\n\r\n- The number of dot-delimited groups is 4\r\n- Each group represents a 'digit'\r\n- The value of each digit is `\u003e= 0` \u0026 `\u003c 256`\r\n\r\nTherefore a segment can contain as many zeroes as you like, and it'll still validate:\r\n\r\n```python\r\nIn [18]: validators.ipv4(\"00000.00000.00000.00000\")\r\nOut[18]: True\r\n```\r\n\r\n```python\r\nIn [19]: validators.ipv4(\"192.168.123.000000000\")\r\nOut[19]: True\r\n```","author":{"url":"https://github.com/tomguyatt","@type":"Person","name":"tomguyatt"},"datePublished":"2021-04-29T13:36:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/190/validators/issues/190"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3aed9df1-5a83-dda6-ab7f-061815cae164 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBDE:22D870:152BBE0:1B7A363:69908143 |
| html-safe-nonce | 931a1b9e53f725076fba6e775851f06fecd2a078b419ccd2e98edb87253e5cb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkRFOjIyRDg3MDoxNTJCQkUwOjFCN0EzNjM6Njk5MDgxNDMiLCJ2aXNpdG9yX2lkIjoiMzcyNjYzMjYyNzg4NjY1Mzc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e760bb7ce4450e7222feb028c240a4ed1b7cb4ca0e050026e7b53903525a05e6 |
| hovercard-subject-tag | issue:871024493 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-validators/validators/190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65bf0833c549667f3f392273b9ec6730d55820cda6e9f4f6d16344b7861c4adb/python-validators/validators/issues/190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65bf0833c549667f3f392273b9ec6730d55820cda6e9f4f6d16344b7861c4adb/python-validators/validators/issues/190 |
| og:image:alt | Version: 0.18.2 The ipv4 validator only tests that: The number of dot-delimited groups is 4 Each group represents a 'digit' The value of each digit is >= 0 & < 256 Therefore a segment can contain a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomguyatt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-validators/validators git https://github.com/python-validators/validators.git |
| octolytics-dimension-user_id | 113113270 |
| octolytics-dimension-user_login | python-validators |
| octolytics-dimension-repository_id | 13642984 |
| octolytics-dimension-repository_nwo | python-validators/validators |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13642984 |
| octolytics-dimension-repository_network_root_nwo | python-validators/validators |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width