]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: fix reserved namespace check to be case-insensitive
authorTamás Gulácsi <tgulacsi78@gmail.com>
Fri, 25 Oct 2019 11:48:02 +0000 (13:48 +0200)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Thu, 9 Apr 2020 02:03:40 +0000 (02:03 +0000)
commit346d7d273c864411022f809945627866f6bc4cc6
tree5977a69bb11d8d8d0c039a8274d52956fe572d13
parent0a18cbc2e61a124b8fa142c4be288ec0c45ccb5d
encoding/xml: fix reserved namespace check to be case-insensitive

Fixes the check for the reserved namespace prefix
"xml" to be case insensitive, so as to match all variants of:

    (('X'|'x')('M'|'m')('L'|'l'))

as mandated by Section 2.3 of https://www.w3.org/TR/REC-xml/

Fixes #35151.

Change-Id: Id5a98e5f9d69d3741dc16f567c4320f1ad0b3c70
Reviewed-on: https://go-review.googlesource.com/c/go/+/203417
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/xml/marshal.go
src/encoding/xml/marshal_test.go