[Syndication]Fix Runtime crash when parsing pubTime in RFC822 format (#5416)
authorInfko <recollectionforgot@gmail.com>
Tue, 22 Aug 2017 13:11:43 +0000 (21:11 +0800)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 22 Aug 2017 13:11:43 +0000 (15:11 +0200)
mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20ItemFormatter.cs

index cd586fa05c3a2276c9077328b6f6c7540e2dc2f1..398c0d8d7b65698976a33f1f44719fe3e7c9dbb9 100644 (file)
@@ -649,6 +649,7 @@ namespace System.ServiceModel.Syndication
 
                string [] rfc822formats = new string [] {
                        "ddd, dd MMM yyyy HH:mm:ss 'Z'",
+                       "ddd, dd MMM yyyy HH:mm:ss 'GMT'",
                        "ddd, dd MMM yyyy HH:mm:ss zzz",
                        "ddd, dd MMM yyyy HH:mm:ss"};