Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0026811 | mantisbt | authentication | public | 2020-03-24 09:49 | 2021-03-23 09:14 |
| Reporter | realitix | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.24.0 | ||||
| Target Version | 2.25.0 | Fixed in Version | 2.25.0 | ||
| Summary | 0026811: Username regex is too strict by default | ||||
| Description | The regex used to validate username limits the extension dns name to 4 chars. import urllib2 def is_ascii(s): data = urllib2.urlopen("https://publicsuffix.org/list/public_suffix_list.dat") print("Longest domain {} with {} chars".format(longest_domain, nb_char)) | ||||
| Tags | No tags attached. | ||||
|
Here the pull request: https://github.com/mantisbt/mantisbt/pull/1634 |
|
|
MantisBT: master e6e5a878 2020-03-25 02:11 Committer: community Details Diff |
Increase TLD max length when validating usernames The regex used to validate usernames limits the top-level domain part to 4 chars. However, a lot of domains exceed this rule. The longest one is currently 18 chars. Fixes 0026811 The following python code returns the longest domain: ``` python import urllib2 def is_ascii(s): return all(ord(c) < 128 for c in s) data = urllib2.urlopen("https://publicsuffix.org/list/public_suffix_list.dat") nb_char = 0 longest_domain = None for line in data: if not line.startswith('//') and '.' not in line and is_ascii(line): d = line.strip() if len(d) > nb_char: nb_char = len(d) longest_domain = d ``` |
Affected Issues 0026811 |
|
| mod - config_defaults_inc.php | Diff File | ||
related to
child of
duplicate of