You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status-change RFC name checks use unanchored 1-4 digit patterns #12142
These accept rfc10008 today only because re.match doesn't require the pattern to reach the end of the string: it matches the first four digits and ignores the rest. The same gap means they also accept input like rfc1234junk, which is caught later only because the Document lookup fails. So nothing is broken, but the checks don't validate what they appear to. A cleanup that anchors them ($ or re.fullmatch) without widening the digit count would make /doc/start-rfc-status-change/rfc10008/ return 404 and make the status-change relation form reject every 5-digit RFC.
Replace all three with anchored, unbounded patterns, such as re.fullmatch(r"\d+", v) and re.fullmatch(r"(?i)rfc\d+", ...), and add a test that uses a 5-digit RFC.
Activity