Skip to content

Commit

Permalink
fix: don't use rfc names in bibxml-id elements (#4823)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Dec 6, 2022
1 parent ebcaa42 commit ded6502
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ietf/doc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,5 +1198,9 @@ def bibxml_for_draft(doc, rev=None):
else:
doc.date = doc.time.astimezone(tzinfo).date() # Even if this may be incorrect, what would be better?

return render_to_string('doc/bibxml.xml', {'name':doc.name, 'doc': doc, 'doc_bibtype':'I-D'})
name = doc.name if isinstance(doc, Document) else doc.doc.name
if name.startswith('rfc'): # bibxml3 does not speak of RFCs
raise Http404()

return render_to_string('doc/bibxml.xml', {'name':name, 'doc':doc, 'doc_bibtype':'I-D'})

0 comments on commit ded6502

Please sign in to comment.